2
0
Files
liminix/vanilla-configuration.nix
T

42 lines
855 B
Nix
Raw Normal View History

2024-06-30 16:58:29 +01:00
{ config, pkgs, ... }:
let
2024-06-29 22:59:27 +01:00
inherit (pkgs.liminix.services) target;
2023-08-28 15:10:53 +01:00
svc = config.system.service;
2025-02-10 21:55:08 +00:00
in
rec {
imports = [
./modules/wlan.nix
2023-08-28 15:10:53 +01:00
./modules/network
2023-07-22 23:22:45 +01:00
./modules/ntp
./modules/vlan
2025-11-04 21:56:42 +00:00
./modules/dhcp4c
];
services.dhcpv4 =
2025-02-10 21:55:08 +00:00
let
iface = svc.network.link.build { ifname = "eth1"; };
in
2025-11-04 20:42:23 +00:00
svc.dhcp4c.client.build { interface = iface; };
services.defaultroute4 = svc.network.route.build {
2024-03-28 22:13:21 +00:00
via = "$(output ${services.dhcpv4} ip)";
2022-09-26 12:55:10 +01:00
target = "default";
dependencies = [ services.dhcpv4 ];
};
2023-09-01 17:34:47 +01:00
services.packet_forwarding = svc.network.forward.build { };
2023-08-05 14:16:54 +01:00
services.ntp = config.system.service.ntp.build {
2025-02-10 21:55:08 +00:00
pools = {
"pool.ntp.org" = [ "iburst" ];
};
2023-07-22 23:22:45 +01:00
};
boot.tftp = {
serverip = "192.168.8.148";
ipaddr = "192.168.8.251";
};
2024-06-30 16:58:29 +01:00
defaultProfile.packages = [ pkgs.hello ];
}