|
|
|
@ -3,16 +3,6 @@ let |
|
|
|
|
inherit (pkgs.liminix.networking) interface address pppoe route dnsmasq; |
|
|
|
|
inherit (pkgs.liminix.services) oneshot longrun bundle target output; |
|
|
|
|
in rec { |
|
|
|
|
services.loopback = |
|
|
|
|
let iface = interface { type = "loopback"; device = "lo";}; |
|
|
|
|
in bundle { |
|
|
|
|
name = "loopback"; |
|
|
|
|
contents = [ |
|
|
|
|
(address iface { family = "inet4"; address ="127.0.0.1"; prefixLength = 8;}) |
|
|
|
|
(address iface { family = "inet6"; address ="::1"; prefixLength = 128;}) |
|
|
|
|
]; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
services.lan4 = |
|
|
|
|
let iface = interface { type = "hardware"; device = "eth1";}; |
|
|
|
|
in address iface { family = "inet4"; address ="192.168.19.1"; prefixLength = 24;}; |
|
|
|
@ -75,7 +65,7 @@ in rec { |
|
|
|
|
services.default = target { |
|
|
|
|
name = "default"; |
|
|
|
|
contents = with services; [ |
|
|
|
|
loopback |
|
|
|
|
config.hardware.networkInterfaces.lo |
|
|
|
|
defaultroute4 |
|
|
|
|
packet_forwarding |
|
|
|
|
dns |
|
|
|
|