1
0
Fork 0

fix deluge backup permissions by adding backup user to media group

This commit is contained in:
ibizaman 2023-12-10 21:30:19 -08:00 committed by Pierre Penninckx
parent ece6ae016a
commit 0829792df0

View file

@ -182,16 +182,16 @@ in
}
];
systemd.services.deluged.serviceConfig.UMask = lib.mkForce "0027";
systemd.services.deluged.serviceConfig.Group = lib.mkForce "media";
# We want deluge to create files in the media group and to make those files group readable.
users.users.deluge = {
extraGroups = [ "media" ];
};
systemd.services.deluged.serviceConfig.Group = lib.mkForce "media";
systemd.services.deluged.serviceConfig.UMask = lib.mkForce "0027";
users.groups.deluge = {
members = [ "backup" ];
};
# We backup the whole deluge directory and set permissions for the backup user accordingly.
users.groups.deluge.members = [ "backup" ];
users.groups.media.members = [ "backup" ];
shb.backup.instances.deluge = {
sourceDirectories = [
config.services.deluge.dataDir