diff options
Diffstat (limited to 'configurations/yavanna/default.nix')
-rw-r--r-- | configurations/yavanna/default.nix | 50 |
1 files changed, 42 insertions, 8 deletions
diff --git a/configurations/yavanna/default.nix b/configurations/yavanna/default.nix index b9de05e..b827dd9 100644 --- a/configurations/yavanna/default.nix +++ b/configurations/yavanna/default.nix @@ -1,4 +1,9 @@ -_: { +{ + config, + lib, + ... +}: +{ nixfiles.modules = { wireguard.client.enable = true; @@ -6,9 +11,31 @@ _: { acme.enable = true; - rtorrent.enable = true; - lidarr.enable = true; - jackett.enable = true; + piracy = { + enable = true; + lidarr.enable = true; + radarr.enable = false; + sonarr.enable = false; + }; + }; + + services.nfs.server = { + enable = true; + exports = + lib.concatMapStringsSep "\n" + ( + dir: + let + target = s: "${s}(insecure,ro,no_subtree_check)"; + v4 = target config.nixfiles.modules.wireguard.ipv4.subnet; + v6 = target config.nixfiles.modules.wireguard.ipv6.subnet; + in + "${dir} ${v4} ${v6}" + ) + [ + "/export/rtorrent" + "/export/music" + ]; }; boot.loader.grub = { @@ -17,10 +44,17 @@ _: { configurationLimit = 5; }; - fileSystems."/" = { - device = "/dev/sda2"; - fsType = "ext4"; - options = [ "noatime" ]; + fileSystems = { + "/" = { + device = "/dev/sda2"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + + "/export/music" = { + device = "/var/lib/lidarr/root"; + options = [ "bind" ]; + }; }; swapDevices = [ { device = "/dev/sda3"; } ]; |