tidy up a bit

module-based-network
Daniel Barlow 2023-03-10 23:39:32 +00:00
parent ad3f241af9
commit 53810e1f5f
1 changed files with 5 additions and 3 deletions

View File

@ -64,9 +64,11 @@ in rec {
};
};
services.dhcpc = (udhcpc config.hardware.networkInterfaces.lan {
dependencies = [ config.services.hostname ];
}) // { inherit (config.hardware.networkInterfaces.lan) device; };
services.dhcpc =
let iface = config.hardware.networkInterfaces.lan;
in (udhcpc iface {
dependencies = [ config.services.hostname ];
}) // { inherit (iface) device; };
services.sshd = longrun {
name = "sshd";