diff options
| author | tv <tv@krebsco.de> | 2026-11-21 02:23:07 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-21 04:08:11 +0100 |
| commit | 59fbd4518770b88d7e8a1e7c13b4789df23cf9d3 (patch) | |
| tree | f2e3e1b6f02f0a6d5e605089874ae3b0133f3f9d /configs/hermes.nix | |
| parent | 3be3ae00ca23ee34b7c7c32e311ea3d23fe15ca0 (diff) | |
configs: fixed uids for claude and hermes
The guest creates its users anew at every boot (userborn's state is on
the tmpfs), so a user's uid depended on which other users there were:
another layer's user could take claude's 1000, and the files on the
home drive would belong to someone else. claude keeps 1000, which its
files have already; hermes, and its group, get 1001.
Diffstat (limited to 'configs/hermes.nix')
| -rw-r--r-- | configs/hermes.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/hermes.nix b/configs/hermes.nix index 633d804..598a067 100644 --- a/configs/hermes.nix +++ b/configs/hermes.nix @@ -157,8 +157,13 @@ in users.users.hermes = { isSystemUser = lib.mkForce false; isNormalUser = true; + # Fixed, for the files on the home drive: users get created anew at + # every boot, and their uids would depend on the other users there. + # Not claude's (configs/claude.nix). + uid = 1001; createHome = lib.mkForce false; }; + users.groups.hermes.gid = 1001; # 0700 rather than the module's 2770 (setgid, for its hostUsers, which # aren't used here): before it, so it's the one systemd-tmpfiles takes # (it ignores later lines for the same path, with a warning). |
