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