liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 86e73317eeb49d26744da546de19171c56e5be4b
parent 5bf8e8522a3d050c85c0a09e757f272fda76f042
Author: Daniel Barlow <dan@telent.net>
Date:   Thu, 20 Jul 2023 11:28:45 +0100

alias config.system.service

Diffstat:
Mexamples/rotuer.nix | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git 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; };