nixos: define the primary group of users where needed

This commit is contained in:
Guillaume Girol
2021-08-08 12:00:00 +00:00
parent 0f15a8f489
commit bc3bca822a
46 changed files with 150 additions and 52 deletions

View File

@@ -120,10 +120,12 @@ in {
environment.systemPackages = [cfg.package];
users.users.apache-kafka = {
uid = config.ids.uids.apache-kafka;
isSystemUser = true;
group = "apache-kafka";
description = "Apache Kafka daemon user";
home = head cfg.logDirs;
};
users.groups.apache-kafka = {};
systemd.tmpfiles.rules = map (logDir: "d '${logDir}' 0700 apache-kafka - - -") cfg.logDirs;