vanilla-configuration.nix (855B)
1 { config, pkgs, ... }: 2 let 3 inherit (pkgs.liminix.services) target; 4 svc = config.system.service; 5 in 6 rec { 7 imports = [ 8 ./modules/wlan.nix 9 ./modules/network 10 ./modules/ntp 11 ./modules/vlan 12 ./modules/dhcp4c 13 ]; 14 15 services.dhcpv4 = 16 let 17 iface = svc.network.link.build { ifname = "eth1"; }; 18 in 19 svc.dhcp4c.client.build { interface = iface; }; 20 21 services.defaultroute4 = svc.network.route.build { 22 via = "$(output ${services.dhcpv4} ip)"; 23 target = "default"; 24 dependencies = [ services.dhcpv4 ]; 25 }; 26 27 services.packet_forwarding = svc.network.forward.build { }; 28 29 services.ntp = config.system.service.ntp.build { 30 pools = { 31 "pool.ntp.org" = [ "iburst" ]; 32 }; 33 }; 34 35 boot.tftp = { 36 serverip = "192.168.8.148"; 37 ipaddr = "192.168.8.251"; 38 }; 39 40 defaultProfile.packages = [ pkgs.hello ]; 41 }