ops/nixos/lib/content: fixup
This commit is contained in:
parent
ca7b57a78a
commit
c5d4542bbb
1 changed files with 31 additions and 25 deletions
|
@ -2,32 +2,38 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
{ lib, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
users.users.content = {
|
config = lib.mkMerge [{
|
||||||
isSystemUser = true;
|
users.users.content = {
|
||||||
group = "content";
|
isSystemUser = true;
|
||||||
};
|
group = "content";
|
||||||
users.groups.content = {};
|
};
|
||||||
|
users.groups.content = {};
|
||||||
|
|
||||||
users.users.lukegb.extraGroups = [ "content" ];
|
users.users.lukegb.extraGroups = [ "content" ];
|
||||||
users.users.sonarr.extraGroups = [ "content" ];
|
} (lib.mkIf config.services.nginx.enable {
|
||||||
users.users.radarr.extraGroups = [ "content" ];
|
systemd.services.nginx.serviceConfig = {
|
||||||
users.users.deluge.extraGroups = [ "content" ];
|
SupplementaryGroups = [ "content" ];
|
||||||
|
};
|
||||||
|
}) (lib.mkIf config.services.sonarr.enable {
|
||||||
|
users.users.sonarr.extraGroups = [ "content" ];
|
||||||
|
systemd.services.sonarr.serviceConfig = {
|
||||||
|
UMask = "0002";
|
||||||
|
Group = lib.mkForce "content";
|
||||||
|
};
|
||||||
|
}) (lib.mkIf config.services.radarr.enable {
|
||||||
|
users.users.radarr.extraGroups = [ "content" ];
|
||||||
|
systemd.services.radarr.serviceConfig = {
|
||||||
|
UMask = "0002";
|
||||||
|
Group = lib.mkForce "content";
|
||||||
|
};
|
||||||
|
}) (lib.mkIf config.services.deluge.enable {
|
||||||
|
users.users.deluge.extraGroups = [ "content" ];
|
||||||
|
|
||||||
systemd.services.nginx.serviceConfig = {
|
systemd.services.deluged.serviceConfig = {
|
||||||
SupplementaryGroups = [ "content" ];
|
UMask = "0002";
|
||||||
};
|
Group = lib.mkForce "content";
|
||||||
systemd.services.deluged.serviceConfig = {
|
};
|
||||||
UMask = "0002";
|
})];
|
||||||
Group = lib.mkForce "content";
|
|
||||||
};
|
|
||||||
systemd.services.sonarr.serviceConfig = {
|
|
||||||
UMask = "0002";
|
|
||||||
Group = lib.mkForce "content";
|
|
||||||
};
|
|
||||||
systemd.services.radarr.serviceConfig = {
|
|
||||||
UMask = "0002";
|
|
||||||
Group = lib.mkForce "content";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue