Add IP addresses for hetznix01

This commit is contained in:
Gene Liverman 2024-02-05 16:51:45 -05:00
parent a62a3d136a
commit d9f826453b

View file

@ -13,12 +13,18 @@
boot.kernelModules = [ ]; boot.kernelModules = [ ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking systemd.network.networks."10-wan" = {
# (the default) this is the recommended approach. When using systemd-networkd it's networkConfig.DHCP = "no";
# still possible to use this option, but it's recommended to use it in conjunction address = [
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. "167.235.18.32/32"
networking.useDHCP = lib.mkDefault true; "2a01:4f8:c2c:2e49::1/64"
# networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; ];
routes = [
{ routeConfig = { Destination = "172.31.1.1"; }; }
{ routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; }
{ routeConfig.Gateway = "fe80::1"; }
];
};
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
} }