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