33 lines
840 B
Nix
33 lines
840 B
Nix
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{ lib, ... }:
|
|
{
|
|
users.users.content = {
|
|
isSystemUser = true;
|
|
group = "content";
|
|
};
|
|
users.groups.content = {};
|
|
|
|
users.users.lukegb.extraGroups = [ "content" ];
|
|
users.users.sonarr.extraGroups = [ "content" ];
|
|
users.users.radarr.extraGroups = [ "content" ];
|
|
users.users.deluge.extraGroups = [ "content" ];
|
|
|
|
systemd.services.nginx.serviceConfig = {
|
|
SupplementaryGroups = [ "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";
|
|
};
|
|
}
|