alias config.system.service
This commit is contained in:
parent
5bf8e8522a
commit
86e73317ee
1 changed files with 6 additions and 5 deletions
|
@ -20,6 +20,7 @@ let
|
||||||
writeText
|
writeText
|
||||||
writeFennelScript
|
writeFennelScript
|
||||||
serviceFns;
|
serviceFns;
|
||||||
|
svc = config.system.service;
|
||||||
in rec {
|
in rec {
|
||||||
boot = {
|
boot = {
|
||||||
tftp = {
|
tftp = {
|
||||||
|
@ -45,7 +46,7 @@ in rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hostap = config.system.service.hostapd {
|
services.hostap = svc.hostapd {
|
||||||
interface = config.hardware.networkInterfaces.wlan_24;
|
interface = config.hardware.networkInterfaces.wlan_24;
|
||||||
params = {
|
params = {
|
||||||
ssid = "liminix";
|
ssid = "liminix";
|
||||||
|
@ -63,7 +64,7 @@ in rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.hostap5 = config.system.service.hostapd {
|
services.hostap5 = svc.hostapd {
|
||||||
interface = config.hardware.networkInterfaces.wlan_5;
|
interface = config.hardware.networkInterfaces.wlan_5;
|
||||||
params = rec {
|
params = rec {
|
||||||
ssid = "liminix_5";
|
ssid = "liminix_5";
|
||||||
|
@ -145,7 +146,7 @@ in rec {
|
||||||
|
|
||||||
services.dns =
|
services.dns =
|
||||||
let interface = services.int;
|
let interface = services.int;
|
||||||
in config.system.service.dnsmasq {
|
in svc.dnsmasq {
|
||||||
resolvconf = services.resolvconf;
|
resolvconf = services.resolvconf;
|
||||||
inherit interface;
|
inherit interface;
|
||||||
ranges = [
|
ranges = [
|
||||||
|
@ -157,7 +158,7 @@ in rec {
|
||||||
|
|
||||||
services.wan =
|
services.wan =
|
||||||
let iface = config.hardware.networkInterfaces.wan;
|
let iface = config.hardware.networkInterfaces.wan;
|
||||||
in config.system.service.pppoe {
|
in svc.pppoe {
|
||||||
interface = iface;
|
interface = iface;
|
||||||
ppp-options = [
|
ppp-options = [
|
||||||
"debug" "+ipv6" "noauth"
|
"debug" "+ipv6" "noauth"
|
||||||
|
@ -196,7 +197,7 @@ in rec {
|
||||||
dependencies = [ services.wan ];
|
dependencies = [ services.wan ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.firewall = config.system.service.firewall {
|
services.firewall = svc.firewall {
|
||||||
ruleset = import ./rotuer-firewall.nix;
|
ruleset = import ./rotuer-firewall.nix;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue