mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Add IP addresses for hetznix01
This commit is contained in:
parent
a62a3d136a
commit
d9f826453b
1 changed files with 12 additions and 6 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue