diff --git a/machines/jupiter/environments.nix b/machines/jupiter/environments.nix index 2553d86..08f0561 100644 --- a/machines/jupiter/environments.nix +++ b/machines/jupiter/environments.nix @@ -12,6 +12,7 @@ in dev_apps = true; gnome_apps = true; }; + prowlarr.enable = true; }; my.hardware = { diff --git a/modules/environments/default.nix b/modules/environments/default.nix index 1854d0c..c287e65 100644 --- a/modules/environments/default.nix +++ b/modules/environments/default.nix @@ -4,5 +4,6 @@ ./apps ./hyprland ./zsh + ./prowlarr ]; } \ No newline at end of file diff --git a/modules/environments/prowlarr/default.nix b/modules/environments/prowlarr/default.nix new file mode 100644 index 0000000..179fc77 --- /dev/null +++ b/modules/environments/prowlarr/default.nix @@ -0,0 +1,32 @@ +# manages indexes +{ config, lib, pkgs, ... }: +let + cfg = config.my.profiles.prowlarr; + # domain = config.networking.domain; + # port = 9696; +in +{ + options.my.profiles.prowlarr = with lib; { + enable = mkEnableOption "Prowlarr for indexing"; + }; + + config = lib.mkIf cfg.enable { + services.prowlarr = { + enable = true; + }; + # # ugly fix for service not having a homedirectory + # users.users.prowlarr = { + # isSystemUser = true; + # home = "/var/lib/prowlarr"; + # group = "prowlarr"; + # uid = 61654; + # }; + # users.groups.prowlarr = { + # gid = 61654; + # }; + + systemd.services.prowlarr = { + after = [ "network-online.target" ]; + }; + }; +} \ No newline at end of file