From 1554492c225da9ecb7af0fc86b285b86c29c937d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 1 Mar 2023 16:30:10 +0100 Subject: stuff for foxdot --- nixos/common.nix | 1 + nixos/kusanagi.nix | 12 +++++++++++- nixos/route48.nix | 13 +++++++++++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 nixos/route48.nix diff --git a/nixos/common.nix b/nixos/common.nix index 87ae8e3..619fa7c 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -55,6 +55,7 @@ in alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + jack.enable = true; }; # Enable touchpad support (enabled default in most desktopManager). diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index bc994ba..750c6a7 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -9,6 +9,7 @@ ./common.nix ./kde.nix #./gnome.nix + #./route48.nix ]; networking.hostName = "kusanagi"; @@ -53,7 +54,16 @@ # Docker virtualisation.docker.enable = true; users.users.lx.extraGroups = [ "docker" ]; - environment.systemPackages = with pkgs; [ docker-compose ]; + environment.systemPackages = with pkgs; [ + docker-compose + ]; + + networking.firewall.allowedTCPPorts = [ + 57890 # troop + ]; + networking.firewall.allowedUDPPorts = [ + 57890 # troop + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; diff --git a/nixos/route48.nix b/nixos/route48.nix new file mode 100644 index 0000000..3dbdb44 --- /dev/null +++ b/nixos/route48.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: +{ + networking.wg-quick.interfaces.route48 = { + privateKeyFile = "/root/route48private"; + address = [ "2a06:a004:3089::2/48" ]; + peers = [{ + publicKey = "W0pI832mL5u7JzJjiE68dyS95mIGBDqGgSxSZromEGY="; + allowedIPs = ["::/1" "8000::/1"]; + endpoint = "par-fr.node.route48.org:51890"; + persistentKeepalive = 60; + }]; + }; +} -- cgit v1.2.3