feat(deertopia): *Arr suite
This commit is contained in:
33
modules/nixos/deertopia/servarr/radarr.nix
Normal file
33
modules/nixos/deertopia/servarr/radarr.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.sydnix.deertopia.servarr.radarr;
|
||||
in {
|
||||
options.sydnix.deertopia.servarr.radarr = {
|
||||
enable = lib.mkEnableOption "Radarr (via Nixarr)";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
nixarr.radarr = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
sydnix.deertopia.nginx.vhosts."radarr" = {
|
||||
directory = null;
|
||||
vhost = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = ''
|
||||
# include ${../authelia/authelia-location.conf};
|
||||
set $upstream http://127.0.0.1:7878;
|
||||
'';
|
||||
locations."/".extraConfig = ''
|
||||
# include ${../authelia/authelia-authrequest.conf};
|
||||
# include ${../authelia/proxy.conf};
|
||||
proxy_pass $upstream;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user