diff --git a/instances/freya/configuration.nix b/instances/freya/configuration.nix index fe27d64..1243df8 100644 --- a/instances/freya/configuration.nix +++ b/instances/freya/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, lib, ... }: { console = { font = "Lat2-Terminus16"; keyMap = "it"; }; @@ -71,8 +71,29 @@ # enable = true; # desktopManager.retroarch = { enable = true; package = pkgs.retroarchFull; }; # }; + + + bazarr = { enable = true; openFirewall = true; group = "users"; }; + fail2ban = { enable = true; bantime-increment.enable = true; }; + jellyfin = { enable = true; openFirewall = true; group = "users"; }; + prowlarr = { enable = true; openFirewall = true; }; + radarr = { enable = true; openFirewall = true; group = "users"; }; + sonarr = { enable = true; openFirewall = true; group = "users"; }; + transmission = { enable = true; openFirewall = true; group = "users"; } + // { settings = { download-dir = "/mnt/raid/condiviso/Torrent"; incomplete-dir = "/mnt/raid/condiviso/Torrent/.incomplete"; }; }; + + snapper.configs = + let + common = { TIMELINE_CREATE = true; TIMELINE_CLEANUP = true; }; + in + { + bertof = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/bertof/"; ALLOW_USERS = [ "bertof" ]; }; + tiziano = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/tiziano/"; ALLOW_USERS = [ "tiziano" ]; }; + condiviso = lib.recursiveUpdate common { SUBVOLUME = "/mnt/raid/condiviso"; ALLOW_USERS = [ "bertof" "tiziano" ]; }; + }; }; + time.timeZone = "Europe/Rome"; users.users = {