From c42053fe2be8616bace20dd75f2183b16a1cc0d1 Mon Sep 17 00:00:00 2001 From: 0x76 Date: Sun, 26 Nov 2023 17:29:50 +0100 Subject: [PATCH] forward port --- nixos/hosts/hades/rtorrent/configuration.nix | 3 +++ nixos/util.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/hades/rtorrent/configuration.nix b/nixos/hosts/hades/rtorrent/configuration.nix index 60085ec3..af10331c 100644 --- a/nixos/hosts/hades/rtorrent/configuration.nix +++ b/nixos/hosts/hades/rtorrent/configuration.nix @@ -6,6 +6,9 @@ in { networking.interfaces.eth0.useDHCP = true; system.stateVersion = "22.05"; + networking.firewall.allowedTCPPorts = [ config.services.rtorrent.port ]; + networking.firewall.allowedUDPPorts = [ config.services.rtorrent.port ]; + fileSystems."/mnt/storage" = { device = "storage:/mnt/storage"; fsType = "nfs"; diff --git a/nixos/util.nix b/nixos/util.nix index 62a312fa..5a55aa5e 100644 --- a/nixos/util.nix +++ b/nixos/util.nix @@ -76,7 +76,7 @@ let inherit tags; targetHost = ip; allowLocalDeployment = type == "local"; - targetUser = "victor"; # Defaults to $USER + targetUser = null; # Defaults to $USER }; }; };