diff --git a/hosts/nord/default.nix b/hosts/nord/default.nix index e6c30b4..ae3660f 100644 --- a/hosts/nord/default.nix +++ b/hosts/nord/default.nix @@ -47,6 +47,9 @@ networking.firewall.allowedTCPPorts = [ 57621 ]; # spotify local discovery + networking.wireguard.interfaces."wg0".ips = [ "172.22.48.4/24" ]; + + # Networking networking.networkmanager.enable = true; #networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. diff --git a/hosts/noximilien/default.nix b/hosts/noximilien/default.nix index a6489d9..4f0650e 100644 --- a/hosts/noximilien/default.nix +++ b/hosts/noximilien/default.nix @@ -99,6 +99,8 @@ networking.hostId = "e1ffd469"; # needed for zfs: head -c 8 /etc/machine-id + networking.wireguard.interfaces."wg0".ips = [ "172.22.48.3/24" ]; + # TODO: remove? Move to where relevant? nixpkgs.overlays = [ /** / diff --git a/profiles/mounts/fridge-nfs.nix b/profiles/mounts/fridge-nfs.nix index 7d61c67..11f4676 100644 --- a/profiles/mounts/fridge-nfs.nix +++ b/profiles/mounts/fridge-nfs.nix @@ -8,7 +8,7 @@ # https://nixos.wiki/wiki/WireGuard networking.firewall.allowedUDPPorts = [ config.networking.wireguard.interfaces."wg0".listenPort ]; networking.wireguard.interfaces."wg0" = { - ips = [ "172.22.48.3/24" ]; + #ips = [ "172.22.48.3/24" ]; # set per host! listenPort = 51820; # (random is default) generatePrivateKeyFile = true; privateKeyFile = "/var/lib/wg/wireguard_key"; @@ -16,10 +16,11 @@ peers = [ { # get your pubkey to give to fyrkat with `wg pubkey