diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-04-14 02:51:09 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-04-14 02:51:09 +0300 |
commit | 39ed30937ec29217820583e07ff1f447d08b9898 (patch) | |
tree | 96dc9d1a62e320c89510cd910add2ce8fb819850 /modules/nixos/radarr.nix | |
parent | 2023-04-12 (diff) |
2023-04-14
Diffstat (limited to 'modules/nixos/radarr.nix')
-rw-r--r-- | modules/nixos/radarr.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/modules/nixos/radarr.nix b/modules/nixos/radarr.nix index 0abfdf2..c706eae 100644 --- a/modules/nixos/radarr.nix +++ b/modules/nixos/radarr.nix @@ -12,7 +12,7 @@ in { domain = mkOption { description = "Domain name sans protocol scheme."; type = with types; str; - default = "radarr.${config.networking.fqdn}"; + default = "radarr.${config.networking.domain}"; }; }; @@ -20,9 +20,16 @@ in { nixfiles.modules.nginx = { enable = true; upstreams.radarr.servers."127.0.0.1:7878" = {}; - virtualHosts.${cfg.domain}.locations."/".proxyPass = "http://radarr"; + virtualHosts.${cfg.domain} = { + locations."/".proxyPass = "http://radarr"; + extraConfig = nginxInternalOnly; + }; }; - services.radarr.enable = true; + services.radarr = { + enable = true; + user = "rtorrent"; + group = "rtorrent"; + }; }; } |