There is nothing in this commit except for the changes made by nix-shell -p nixfmt-rfc-style --run "nixfmt ." If this has mucked up your open branches then sorry about that. You can probably nixfmt them to match before merging
41 lines
840 B
Nix
41 lines
840 B
Nix
{ config, pkgs, ... }:
|
|
let
|
|
inherit (pkgs.liminix.services) target;
|
|
svc = config.system.service;
|
|
in
|
|
rec {
|
|
imports = [
|
|
./modules/wlan.nix
|
|
./modules/network
|
|
./modules/ntp
|
|
./modules/vlan
|
|
];
|
|
|
|
services.dhcpv4 =
|
|
let
|
|
iface = svc.network.link.build { ifname = "eth1"; };
|
|
in
|
|
svc.network.dhcp.client.build { interface = iface; };
|
|
|
|
services.defaultroute4 = svc.network.route.build {
|
|
via = "$(output ${services.dhcpv4} ip)";
|
|
target = "default";
|
|
dependencies = [ services.dhcpv4 ];
|
|
};
|
|
|
|
services.packet_forwarding = svc.network.forward.build { };
|
|
|
|
services.ntp = config.system.service.ntp.build {
|
|
pools = {
|
|
"pool.ntp.org" = [ "iburst" ];
|
|
};
|
|
};
|
|
|
|
boot.tftp = {
|
|
serverip = "192.168.8.148";
|
|
ipaddr = "192.168.8.251";
|
|
};
|
|
|
|
defaultProfile.packages = [ pkgs.hello ];
|
|
}
|