Skip to content

Commit

Permalink
adding groups
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Apr 1, 2024
1 parent 3d5f567 commit 20efc0a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .direnv/flake-profile
1 change: 1 addition & 0 deletions .direnv/flake-profile-1-link
4 changes: 3 additions & 1 deletion nixos-module/chef.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ in
};
};

users.groups."${cfg.group}" = {};

# user accounts for systemd units
users.users."${cfg.user}" = {
name = "${cfg.user}";
description = "runs chef";
isNormalUser = false;
isSystemUser = true;
group = cfg.group;
uid = 1501;
uid = 1601;
};
};
}
4 changes: 3 additions & 1 deletion nixos-module/maid.nix
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,16 @@ in
};
};

users.groups."${cfg.group}" = {};

# user accounts for systemd units
users.users."${cfg.user}" = {
name = "${cfg.user}";
description = "runs maid";
isNormalUser = false;
isSystemUser = true;
group = cfg.group;
uid = 1502;
uid = 1602;
};
};
}

0 comments on commit 20efc0a

Please sign in to comment.