diff --git a/home/fossil.nix b/home/fossil.nix index d61bc75..f488b15 100644 --- a/home/fossil.nix +++ b/home/fossil.nix @@ -9,6 +9,7 @@ cmus zellij steam + xonotic ]; } diff --git a/system/adrift.nix b/system/adrift.nix index 6781460..8fd3403 100644 --- a/system/adrift.nix +++ b/system/adrift.nix @@ -20,6 +20,25 @@ networking.useDHCP = lib.mkDefault true; + networking.wireguard = { + enable = true; + interfaces = { + pond = { + ips = [ "10.4.20.3/32" ]; + listenPort = 51820; + privateKeyFile = "/root/pond.priv"; + peers = [ + { + publicKey = "ll0/+7bbaAFgCuUOj0s0twHalXLxcXOtkxJbtw/egV4="; + allowedIPs = [ "10.4.20.0/24" ]; + endpoint = "141.164.52.106:51821"; + persistentKeepalive = 20; + } + ]; + }; + }; + }; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; networking.hostName = "adrift"; # Define your hostname. diff --git a/system/configuration.nix b/system/configuration.nix index b97866c..41fb4e3 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -6,7 +6,7 @@ imports = [ # where are we ? - # ./wollomi.nix + ./wollomi.nix # ./adrift.nix # home manager should exist for users @@ -113,6 +113,11 @@ zsh ]; + + + networking.firewall = { + allowedUDPPorts = [ 51820 ]; + }; system.stateVersion = "22.05"; # Did you read the comment? diff --git a/system/wollomi.nix b/system/wollomi.nix index c9f4520..ea012b5 100644 --- a/system/wollomi.nix +++ b/system/wollomi.nix @@ -23,6 +23,25 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + networking.wireguard = { + enable = true; + interfaces = { + pond = { + ips = [ "10.4.20.2/32" ]; + listenPort = 51820; + privateKeyFile = "/root/pond.priv"; + peers = [ + { + publicKey = "ll0/+7bbaAFgCuUOj0s0twHalXLxcXOtkxJbtw/egV4="; + allowedIPs = [ "10.4.20.0/24" ]; + endpoint = "141.164.52.106:51821"; + persistentKeepalive = 20; + } + ]; + }; + }; + }; + # dlna services.minidlna = { enable = true;