From fc32e170f25bb8081f331880d3b0bbbae19161e7 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sat, 2 Mar 2024 19:53:12 +0100 Subject: [PATCH] Generic update. --- nixos/configuration.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 5452a25..2ed864a 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -161,11 +161,13 @@ catppuccin-sddm-corners ]; - # Wireguard settings + # firewall settings networking.firewall = { enable = true; # allow specific tcp ports - allowedTCPPorts = [ 2234 ]; + allowedTCPPorts = [ 2234 22000 ]; + # allow specific udp ports + allowedUDPPorts = [ 22000 21027 ]; # if packets are still dropped, they will show up in dmesg logReversePathDrops = true; # wireguard trips rpfilter up @@ -185,6 +187,9 @@ # Enable ratbagd for mice configuration services.ratbagd.enable = true; + # Enable firmware updater + services.fwupd.enable = true; + # Setup syncthing services = { syncthing = { @@ -238,7 +243,7 @@ serviceConfig = { Type = "oneshot"; ExecStart = toString (pkgs.writeShellScript "ryzenadj-setup" '' - ${pkgs.ryzenadj}/bin/ryzenadj --stapm-limit 35000 --fast-limit 35000 --slow-limit 35000 --slow-time 60 --stapm-time 1000 --tctl-temp 75 --vrmmax-current 65000 + ${pkgs.ryzenadj}/bin/ryzenadj --stapm-limit 35000 --fast-limit 35000 --slow-limit 35000 --slow-time 60 --stapm-time 1000 --tctl-temp 80 --vrmmax-current 65000 ''); }; wantedBy = [ "default.target" ];