summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-12-24 00:49:02 +0100
committertv <tv@krebsco.de>2021-12-24 00:51:28 +0100
commit71d11e8f2b377d3aade73faae129811bba922315 (patch)
tree5911907c7971f6449db3925c5623bc3ed04c12da /krebs/3modules
parent234d9d96bf749c67add1339d37706bc07153d5f8 (diff)
repo-sync: add group
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/repo-sync.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/krebs/3modules/repo-sync.nix b/krebs/3modules/repo-sync.nix
index 0312c62fd..488cc4dd8 100644
--- a/krebs/3modules/repo-sync.nix
+++ b/krebs/3modules/repo-sync.nix
@@ -148,10 +148,13 @@ let
users.users.${cfg.user.name} = {
inherit (cfg.user) home name uid;
createHome = true;
+ group = cfg.user.name;
description = "repo-sync user";
isSystemUser = true;
};
+ users.groups.${cfg.user.name} = {};
+
systemd.timers = mapAttrs' (name: repo:
nameValuePair "repo-sync-${name}" {
description = "repo-sync timer";