From 9addf815c9c77f55f91191204514e140b7d84f0d Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 26 Jul 2022 21:27:14 +0200 Subject: [PATCH 1/2] remove unused wireguard --- systems/LoutreOS/services.nix | 22 ---------------------- systems/common-cli.nix | 1 - 2 files changed, 23 deletions(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index e94ba67..376fb3a 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -541,24 +541,6 @@ in security.pam.services.sshd.text = pkgs.lib.mkDefault( pkgs.lib.mkAfter "session optional ${pkgs.pam}/lib/security/pam_exec.so seteuid ${login_mail_alert}/bin/mail_alert.sh" ); networking = { - wireguard.interfaces = { - wg0 = { - ips = [ "192.168.20.1/24" ]; - privateKeyFile = "/mnt/secrets/wireguard/wg0.privatekey"; - listenPort = 51820; - allowedIPsAsRoutes = true; - peers = [ - { - allowedIPs = [ "192.168.20.2/32" ]; - publicKey = "b/SXiqo+GPdNOc54lyEVeUBc6B5AbVMKh+g5EZPGzlE="; - } - ]; - }; - }; - - nat.internalInterfaces = [ "wg0" ]; - nat.internalIPs = [ "192.168.20.0/24" ]; - firewall.interfaces.eno2.allowedTCPPorts = [ 3260 ]; @@ -571,9 +553,5 @@ in firewall.allowedTCPPortRanges = [ { from = 64000; to = 65535; } # FTP ]; - - firewall.allowedUDPPorts = [ - config.networking.wireguard.interfaces.wg0.listenPort - ]; }; } diff --git a/systems/common-cli.nix b/systems/common-cli.nix index 6d72c56..b0cdf52 100644 --- a/systems/common-cli.nix +++ b/systems/common-cli.nix @@ -49,7 +49,6 @@ inetutils rclone lftp - wireguard-tools nfs-utils nmap From b9981c707569610652dd8924c5f751cc051d6514 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 26 Jul 2022 21:27:31 +0200 Subject: [PATCH 2/2] fix transmission default downloaddir --- systems/LoutreOS/medias.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/LoutreOS/medias.nix b/systems/LoutreOS/medias.nix index 60193b4..07f3f1b 100644 --- a/systems/LoutreOS/medias.nix +++ b/systems/LoutreOS/medias.nix @@ -13,6 +13,7 @@ rpc-whitelist-enabled = false; peer-port = 51413; incomplete-dir = "/mnt/medias/incomplete"; + download-dir = "/mnt/medias/torrent"; }; };