commit 53810e1f5f43aa841106f7900bf81ffa5a42e838 parent ad3f241af97816fe69653727b44b87a8d671053c Author: Daniel Barlow <dan@telent.net> Date: Fri, 10 Mar 2023 23:39:32 +0000 tidy up a bit Diffstat:
| M | examples/arhcive.nix | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/examples/arhcive.nix b/examples/arhcive.nix @@ -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";