summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-03-01 16:30:10 +0100
committerAlex Auvolat <alex@adnab.me>2023-03-01 16:30:47 +0100
commit1554492c225da9ecb7af0fc86b285b86c29c937d (patch)
treef9f37e58dd33e8253bde34b4db4dc94d3365e53e
parente983a9765eef0e88b9d8de7a413f04b217420360 (diff)
downloaduser-config-1554492c225da9ecb7af0fc86b285b86c29c937d.tar.gz
user-config-1554492c225da9ecb7af0fc86b285b86c29c937d.zip
stuff for foxdot
-rw-r--r--nixos/common.nix1
-rw-r--r--nixos/kusanagi.nix12
-rw-r--r--nixos/route48.nix13
3 files changed, 25 insertions, 1 deletions
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;
+ }];
+ };
+}