nixos/jackflix: Add Sonarr

This commit is contained in:
Jack O'Sullivan 2022-06-12 15:17:35 +01:00
parent e52518259c
commit f99eb399dc
3 changed files with 19 additions and 1 deletions

View File

@ -35,8 +35,11 @@
users = { users = {
groups.media.gid = 2000; groups.media.gid = 2000;
users = { users = {
"${config.my.user.config.name}".extraGroups = [ "media" ];
transmission.extraGroups = [ "media" ]; transmission.extraGroups = [ "media" ];
radarr.extraGroups = [ "media" ]; radarr.extraGroups = [ "media" ];
sonarr.extraGroups = [ "media" ];
}; };
}; };
@ -46,6 +49,7 @@
transmission.bindsTo = [ "systemd-networkd-wait-online@vpn.service" ]; transmission.bindsTo = [ "systemd-networkd-wait-online@vpn.service" ];
radarr.serviceConfig.UMask = "0002"; radarr.serviceConfig.UMask = "0002";
sonarr.serviceConfig.UMask = "0002";
}; };
}; };
@ -74,6 +78,7 @@
jackett.enable = true; jackett.enable = true;
radarr.enable = true; radarr.enable = true;
sonarr.enable = true;
jellyfin.enable = true; jellyfin.enable = true;
}; };

View File

@ -191,6 +191,19 @@ in
} }
(ssoServer "generic") (ssoServer "generic")
]; ];
"sonarr-test.${lib.my.pubDomain}" = mkMerge [
{
locations."/" = mkMerge [
{
proxyPass = "http://jackflix-ctr.${config.networking.domain}:8989";
proxyWebsockets = true;
}
(ssoLoc "generic")
];
useACMEHost = lib.my.pubDomain;
}
(ssoServer "generic")
];
"jackflix-test.${lib.my.pubDomain}" = "jackflix-test.${lib.my.pubDomain}" =
let let

View File

@ -33,7 +33,7 @@ in
name = mkDefault' "dev"; name = mkDefault' "dev";
isNormalUser = true; isNormalUser = true;
uid = mkDefault 1000; uid = mkDefault 1000;
extraGroups = mkDefault [ "wheel" "kvm" ]; extraGroups = [ "wheel" "kvm" ];
password = mkIf (cfg.passwordSecret == null) (mkDefault "hunter2"); password = mkIf (cfg.passwordSecret == null) (mkDefault "hunter2");
shell = shell =
let shell = cfg.homeConfig.my.shell; let shell = cfg.homeConfig.my.shell;