mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(sonarr): disable if insecure
This commit is contained in:
parent
b7a41632e3
commit
e27ecbb13a
1 changed files with 6 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
_: {
|
{config, lib, ...}: let
|
||||||
|
inherit (lib.modules) mkIf mkDefault;
|
||||||
|
cfg = config.services.sonarr;
|
||||||
|
available = cfg.package.meta.available && cfg.package.dotnet-runtime.meta.available or true;
|
||||||
|
in {
|
||||||
services.sonarr = {
|
services.sonarr = {
|
||||||
enable = true;
|
enable = mkIf available (mkDefault true);
|
||||||
};
|
};
|
||||||
users.users.sonarr.extraGroups = ["kyuuto"];
|
users.users.sonarr.extraGroups = ["kyuuto"];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue