1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(tuna, moodle-dl): create groups for users

This commit is contained in:
2021-12-01 08:14:18 +01:00
parent 33da8389f5
commit 10d003371e
2 changed files with 6 additions and 1 deletions

View File

@@ -56,6 +56,7 @@ in {
users.users.moodle-dl = {
isSystemUser = true;
home = cfg.directory;
group = "moodle-dl";
};
users.groups.moodle-dl = {};

View File

@@ -76,7 +76,11 @@ in {
};
config = mkIf cfg.enable {
users.extraUsers.tuna.isSystemUser = true;
users.users.tuna = {
isSystemUser = true;
group = "tuna";
};
users.groups.tuna = {};
# ref https://github.com/florianheinemann/MPD.FM/blob/9d037cf87597b26ae2f10ba9feea48946ad6cc68/service/MPD.FM.service
systemd.services.tuna = {
wantedBy = [ "multi-user.target" ];