aboutsummaryrefslogtreecommitdiff
path: root/srv
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-12-13 01:25:07 +0100
committerLinnea Gräf <nea@nea.moe>2024-12-13 01:25:07 +0100
commitcc212a09089dce84def20b9831cfcb9860209264 (patch)
tree324ecfc6f1f3e50e434e39330745d648bf3ddbac /srv
parent9fe92f9179a522764a92d7dc0ab8da75becfe883 (diff)
downloadnix-infra-cc212a09089dce84def20b9831cfcb9860209264.tar.gz
nix-infra-cc212a09089dce84def20b9831cfcb9860209264.tar.bz2
nix-infra-cc212a09089dce84def20b9831cfcb9860209264.zip
Fix network again
Diffstat (limited to 'srv')
-rw-r--r--srv/h-alpha/hardware-configuration.nix26
1 files changed, 15 insertions, 11 deletions
diff --git a/srv/h-alpha/hardware-configuration.nix b/srv/h-alpha/hardware-configuration.nix
index f0a7197..868ec92 100644
--- a/srv/h-alpha/hardware-configuration.nix
+++ b/srv/h-alpha/hardware-configuration.nix
@@ -22,16 +22,20 @@
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
swapDevices = [ ];
- networking.useDHCP = lib.mkDefault true;
- nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
- systemd.network.networks."30-wan" = {
- matchConfig.Name = "enp1s0";
- networkConfig.DHCP = "ipv4";
- address = [
- "2a01:4f9:c012:5dd3::/64"
- ];
- routes = [
- { Gateway = "fe80::1"; }
- ];
+ networking = {
+ useDHCP = false;
+ defaultGateway6 = {
+ address = "fe80::1";
+ interface = "enp1s0";
+ };
+ interfaces.enp1s0 = {
+ ipv6.addresses = [
+ {
+ address = "2a01:4f9:c012:5dd3::";
+ prefixLength = 64;
+ }
+ ];
+ };
};
+ nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}