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

feat(radio, urlwatch): create groups

This commit is contained in:
2021-12-01 12:03:33 +01:00
parent fc067a8493
commit bbc50f3642
2 changed files with 9 additions and 1 deletions

View File

@@ -63,7 +63,11 @@ in
})
];
users.extraUsers.radio.isSystemUser = true;
users.extraUsers.radio = {
isSystemUser = true;
group = "radio";
};
users.groups.radio = {};
krebs.htgen.radio = {
port = htgenPort;

View File

@@ -128,8 +128,11 @@ in
home = urlwatchDir;
createHome = true;
isSystemUser = true;
group = "urlwatch";
};
users.groups.urlwatch = {};
systemd.services.urlwatch = {
enable = true;
startAt = "*-*-* 05:00:00";
@@ -140,6 +143,7 @@ in
'';
serviceConfig = {
User = config.users.extraUsers.urlwatch.name;
Group = config.users.groups.urlwatch.name;
WorkingDirectory = config.users.extraUsers.urlwatch.home;
PermissionsStartOnly = "true";
PrivateTmp = "true";