Compare commits
2 commits
d40bdb7415
...
543611983c
Author | SHA1 | Date | |
---|---|---|---|
chayleaf | 543611983c | ||
chayleaf | 658732ec4e |
|
@ -629,11 +629,11 @@
|
|||
},
|
||||
"nixpkgs_3": {
|
||||
"locked": {
|
||||
"lastModified": 1717922286,
|
||||
"narHash": "sha256-RsV7rNWYceglPDVgVukwYfoYK2fuAgyvyvSE/Gyah+Y=",
|
||||
"lastModified": 1720722856,
|
||||
"narHash": "sha256-vTD9PK8X0rVrOkcRetSpTacRNbH/qZi8YdKBXxAC8GQ=",
|
||||
"owner": "chayleaf",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "47c40a60d0952cd6b86c171898870142b0747602",
|
||||
"rev": "06bfe30652b5d4b56a800a09c29ada61adcede65",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -35,8 +35,6 @@ in
|
|||
"net.ipv4.tcp_congestion_control" = "bbr";
|
||||
};
|
||||
|
||||
networking.useDHCP = true;
|
||||
/*
|
||||
# as expected, systemd initrd and networking didn't work well, and i really cba to debug it
|
||||
networking.useDHCP = false;
|
||||
networking.useNetworkd = true;
|
||||
|
@ -52,8 +50,18 @@ in
|
|||
networks."10-dhcp" = {
|
||||
DHCP = "yes";
|
||||
name = "e*";
|
||||
networkConfig = {
|
||||
IPv6AcceptRA = "yes";
|
||||
};
|
||||
dhcpV4Config = {
|
||||
ClientIdentifier = "mac";
|
||||
DUIDType = "link-layer";
|
||||
};
|
||||
dhcpV6Config = {
|
||||
DUIDType = "link-layer";
|
||||
};
|
||||
};
|
||||
};*/
|
||||
};
|
||||
|
||||
boot.initrd = {
|
||||
/*systemd = {
|
||||
|
@ -79,10 +87,12 @@ in
|
|||
preLVMCommands = lib.mkOrder 499 ''
|
||||
ip link set end0 address ${router-config.router-settings.serverInitrdMac} || ip link set eth0 address ${router-config.router-settings.serverInitrdMac} || true
|
||||
'';
|
||||
postMountCommands = ''
|
||||
ip link set end0 address ${router-config.router-settings.serverMac} || ip link set eth0 address ${router-config.router-settings.serverInitrdMac} || true
|
||||
'';
|
||||
# postMountCommands = ''
|
||||
# ip link set end0 address ${router-config.router-settings.serverMac} || ip link set eth0 address ${router-config.router-settings.serverMac} || true
|
||||
# '';
|
||||
network.enable = true;
|
||||
network.flushBeforeStage2 = true;
|
||||
network.udhcpc.enable = true;
|
||||
network.udhcpc.extraArgs = [ "-t100" ];
|
||||
network.ssh = {
|
||||
enable = true;
|
||||
|
|
|
@ -296,6 +296,7 @@ in {
|
|||
{ ipAddress = lightBulbAddress6;
|
||||
macAddress = cfg.lightBulbMac; }
|
||||
{ ipAddress = serverInitrdAddress6;
|
||||
duid = cfg.serverInitrdDuid;
|
||||
macAddress = cfg.serverInitrdMac; }
|
||||
];
|
||||
|
||||
|
|
|
@ -70,6 +70,11 @@
|
|||
description = "server's mac address in initrd";
|
||||
type = lib.types.str;
|
||||
};
|
||||
serverInitrdDuid = lib.mkOption {
|
||||
description = "server's duid in initrd";
|
||||
type = with lib.types; nullOr str;
|
||||
default = null;
|
||||
};
|
||||
vacuumMac = lib.mkOption {
|
||||
description = "robot vacuum's mac address";
|
||||
type = lib.types.str;
|
||||
|
|
Loading…
Reference in a new issue