From 86e73317eeb49d26744da546de19171c56e5be4b Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 20 Jul 2023 11:28:45 +0100 Subject: [PATCH] alias config.system.service --- examples/rotuer.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/rotuer.nix b/examples/rotuer.nix index a0ac34f..3dc564b 100644 --- a/examples/rotuer.nix +++ b/examples/rotuer.nix @@ -20,6 +20,7 @@ let writeText writeFennelScript serviceFns; + svc = config.system.service; in rec { boot = { tftp = { @@ -45,7 +46,7 @@ in rec { }; }; - services.hostap = config.system.service.hostapd { + services.hostap = svc.hostapd { interface = config.hardware.networkInterfaces.wlan_24; params = { ssid = "liminix"; @@ -63,7 +64,7 @@ in rec { }; }; - services.hostap5 = config.system.service.hostapd { + services.hostap5 = svc.hostapd { interface = config.hardware.networkInterfaces.wlan_5; params = rec { ssid = "liminix_5"; @@ -145,7 +146,7 @@ in rec { services.dns = let interface = services.int; - in config.system.service.dnsmasq { + in svc.dnsmasq { resolvconf = services.resolvconf; inherit interface; ranges = [ @@ -157,7 +158,7 @@ in rec { services.wan = let iface = config.hardware.networkInterfaces.wan; - in config.system.service.pppoe { + in svc.pppoe { interface = iface; ppp-options = [ "debug" "+ipv6" "noauth" @@ -196,7 +197,7 @@ in rec { dependencies = [ services.wan ]; }; - services.firewall = config.system.service.firewall { + services.firewall = svc.firewall { ruleset = import ./rotuer-firewall.nix; };