From 53810e1f5f43aa841106f7900bf81ffa5a42e838 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Fri, 10 Mar 2023 23:39:32 +0000 Subject: [PATCH] tidy up a bit --- examples/arhcive.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/arhcive.nix b/examples/arhcive.nix index be8472c..f09d592 100644 --- 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";