Feature: radrarr module

This commit is contained in:
marthsincemelee
2023-10-16 22:33:02 +02:00
parent 5e40f81c99
commit dac0e346e7
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ in
dev_apps = true;
gnome_apps = true;
};
prowlarr.enable = true;
radarr.enable = true;
};
my.hardware = {
+1
View File
@@ -5,5 +5,6 @@
./hyprland
./zsh
./prowlarr
./radarr
];
}
+25
View File
@@ -0,0 +1,25 @@
# manages and downloads films
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.radarr;
# domain = config.networking.domain;
# port = 7878;
in
{
options.my.profiles.radarr = with lib; {
enable = mkEnableOption "Sonarr for films management";
};
config = lib.mkIf cfg.enable {
services.radarr = {
enable = true;
};
my.profiles.prowlarr.enable = true;
systemd.services.radarr = {
after = [ "network-online.target" ];
};
};
}