summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-12-01 17:55:22 +0100
committerlassulus <lassulus@lassul.us>2021-12-01 18:11:58 +0100
commit280ed594fb4d4256a3f7a9a0b903c3e251234735 (patch)
tree86003326bede74b59070642c29450a7f0df01648
parent93fb28ac98fb301779c0ab1cd4ef54476faa9879 (diff)
htgen: generate group for every user
-rw-r--r--krebs/3modules/htgen.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/krebs/3modules/htgen.nix b/krebs/3modules/htgen.nix
index 517dad76f..4221703ec 100644
--- a/krebs/3modules/htgen.nix
+++ b/krebs/3modules/htgen.nix
@@ -69,10 +69,13 @@ let
users.users = mapAttrs' (name: htgen:
nameValuePair htgen.user.name {
inherit (htgen.user) home name uid;
+ group = htgen.user.name;
createHome = true;
isSystemUser = true;
}
) cfg;
+ users.groups = mapAttrs (_: _: {}) cfg;
+
};
in out