Nix configurations for my homelab

Edit qBittorrent preferences

yemou.pink c7b306f3 8d25da6f

verified
Changed files
+21 -17
modules
+15 -15
flake.lock
···
]
},
"locked": {
-
"lastModified": 1764998300,
-
"narHash": "sha256-fZatn/KLfHLDXnF0wy7JxXqGaZmGDTVufT4o/AOlj44=",
+
"lastModified": 1765217760,
+
"narHash": "sha256-BVVyAodLcAD8KOtR3yCStBHSE0WAH/xQWH9f0qsxbmk=",
"owner": "nix-community",
"repo": "home-manager",
-
"rev": "27a6182347ccae90a88231ae0dc5dfa7d15815bb",
+
"rev": "e5b1f87841810fc24772bf4389f9793702000c9b",
"type": "github"
},
"original": {
···
},
"nixpkgs": {
"locked": {
-
"lastModified": 1765094762,
-
"narHash": "sha256-rE8XLdLoGWSPbEtbUx3zn9uIqR+WExEbHNLjY/PGwTg=",
+
"lastModified": 1765270179,
+
"narHash": "sha256-g2a4MhRKu4ymR4xwo+I+auTknXt/+j37Lnf0Mvfl1rE=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "efed18dfab8df143928588590e6093cf99f0e663",
+
"rev": "677fbe97984e7af3175b6c121f3c39ee5c8d62c9",
"type": "github"
},
"original": {
···
},
"nixpkgs-stable": {
"locked": {
-
"lastModified": 1765054996,
-
"narHash": "sha256-5VtFSptZZuCBLTQbFHAFhFtjyp1jjBw4cWS1/lsHsF4=",
+
"lastModified": 1765240259,
+
"narHash": "sha256-51aLq0FNBVgpoE0zyioB/K3FKPFMwcL8abfeCLnxAVQ=",
"owner": "NixOS",
"repo": "nixpkgs",
-
"rev": "4462df3c8ee33ebe051abec244e73052c862457e",
+
"rev": "18982440f876f2b880351ebfa2568592c08cc0f5",
"type": "github"
},
"original": {
···
"rust-overlay": "rust-overlay"
},
"locked": {
-
"lastModified": 1765030468,
-
"narHash": "sha256-athpo8MuvhhNgU4N93Rx/j+RTyasqMO2FPmgcGKNzGQ=",
+
"lastModified": 1765224616,
+
"narHash": "sha256-WVI3IhZReUjvkzDYzf1Doma220Fn4OR5YVMbGxRYZnU=",
"owner": "roc-lang",
"repo": "roc",
-
"rev": "90441419601305db1dc3638a0c956240efee9533",
+
"rev": "ea76b7b1ee2c2725e08c9763b143b42285e5cffd",
"type": "github"
},
"original": {
···
"nixpkgs": "nixpkgs_3"
},
"locked": {
-
"lastModified": 1765079830,
-
"narHash": "sha256-i9GMbBLkeZ7MVvy7+aAuErXkBkdRylHofrAjtpUPKt8=",
+
"lastModified": 1765231718,
+
"narHash": "sha256-qdBzo6puTgG4G2RHG0PkADg22ZnQo1JmSVFRxrD4QM4=",
"owner": "Mic92",
"repo": "sops-nix",
-
"rev": "aeb517262102f13683d7a191c7e496b34df8d24c",
+
"rev": "7fd1416aba1865eddcdec5bb11339b7222c2363e",
"type": "github"
},
"original": {
+6 -2
modules/qbittorrent.nix
···
Interface = "vpn";
InterfaceName = "vpn";
TorrentContentLayout = "Subfolder";
+
Preallocation = true;
QueueingSystemEnabled = false;
+
GlobalMaxInactiveSeedingMinutes = 43200;
+
GlobalMaxSeedingMinutes = 43200;
+
ShareLimitAction = "RemoveWithContent"; # TODO: For some reason this gets overridden at start up
};
Network.PortForwardingEnabled = false;
Preferences = {
···
LocalHostAuth = false;
AuthSubnetWhitelistEnabled = true;
AuthSubnetWhitelist = lib.strings.join ", " [
-
"192.168.2.1"
-
(lib.optionalString (config.networking.hostName == "lily") config.garden.info.network.lutea.netbird-ip)
+
"192.168.2.1/32"
+
(lib.optionalString (config.networking.hostName == "lily") "${config.garden.info.network.lutea.netbird-ip}/32")
];
};
};