Cleans the nixbox host config, changes media dir structure

This commit is contained in:
willemml 2023-11-20 22:23:00 -08:00
parent c64a86f1a6
commit 5abc05fd77
Signed by: willemml
GPG key ID: C3DE5DF6198DACBD

View file

@ -43,22 +43,18 @@
fsType = "vfat";
};
fileSystems."/zpool" = {
device = "zpool";
fsType = "zfs";
};
boot.zfs.extraPools = ["zpool"];
environment.systemPackages = [pkgs.zfs];
services.jellyfin.enable = true;
services.jellyfin.openFirewall = true;
services.transmission = {
enable = true;
settings = rec {
download-dir = "/zpool/torrents/complete";
incomplete-dir = "/zpool/torrents/incomplete";
download-dir = "/zpool/media/torrents";
incomplete-dir = "/zpool/media/torrents/.incomplete";
incomplete-dir-enabled = true;
rpc-enabled = true;
rpc-bind-address = "0.0.0.0";
@ -67,21 +63,11 @@
};
};
networking.firewall.allowedTCPPorts = [9091];
networking.firewall.allowedUDPPorts = [9091];
networking.firewall.logRefusedConnections = true;
networking.firewall.logRefusedPackets = true;
networking.nftables.enable = true;
networking.nftables.flushRuleset = true;
networking.nftables.tables."nixos-fw".content = lib.mkForce "";
networking.firewall.trustedInterfaces = ["zt*"];
swapDevices = [];
networking.nftables.ruleset = ''
table inet filter {
chain input {