From 2c6cec51786dc74a94b7de60eb260fb39d2d1f81 Mon Sep 17 00:00:00 2001 From: tootbrute Date: Mon, 5 May 2025 11:32:02 +0800 Subject: [PATCH] reorganize nix settings --- configuration.nix | 16 ++++++++++++---- services/transmission.nix | 7 ++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index 4acecfd..61125fd 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,7 +15,7 @@ ./services/calibre-web.nix ./services/glances.nix ./services/fail2ban.nix -# ./services/transmission.nix + ./services/transmission.nix ]; # Bootloader. boot.loader.systemd-boot.enable = true; @@ -49,9 +49,17 @@ # ZFS services.zfs.autoScrub.enable = true; - # Housekeeping: Garbage collection - nix.gc.automatic = true; - nix.optimise.automatic = true; + # Nix settings + nix = { + settings = { + #experimental-features = [ "nix-command" "flakes" ]; + download-buffer-size = "2G"; + warn-dirty = false; + # garbage collection + gc.automatic = true; + optimise.automatic = true; + }; + }; # Networking networking.hostName = "knossos"; # Define your hostname. diff --git a/services/transmission.nix b/services/transmission.nix index 4d0d33e..cb14af2 100644 --- a/services/transmission.nix +++ b/services/transmission.nix @@ -11,11 +11,12 @@ openRPCPort = true; settings = { rpc-bind-address = "0.0.0.0"; + rpc-whitelist = "127.0.0.1,100.86.169.8,100.120.170.60"; #Whitelist your remote machine (10.0.0.1 in this example) }; - environment.systemPackages = [ - transmission - ]; +# environment.systemPackages = [ +# pkgs.transmission +# ]; };