Skip to content

Commit

Permalink
nixos/whisparr: Remove static IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco committed Dec 23, 2024
1 parent 55e8064 commit 218901b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions nixos/modules/misc/ids.nix
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ in
rstudio-server = 324;
localtimed = 325;
automatic-timezoned = 326;
whisparr = 328;

# When adding a uid, make sure it doesn't match an existing gid.
#
Expand Down Expand Up @@ -683,7 +682,6 @@ in
rstudio-server = 324;
localtimed = 325;
automatic-timezoned = 326;
whisparr = 328;

# When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal
Expand Down
4 changes: 2 additions & 2 deletions nixos/modules/services/misc/whisparr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ in
whisparr = {
group = cfg.group;
home = cfg.dataDir;
uid = config.ids.uids.whisparr;
isSystemUser = true;
};
};

users.groups = lib.mkIf (cfg.group == "whisparr") { whisparr.gid = config.ids.gids.whisparr; };
users.groups.whisparr = lib.mkIf (cfg.group == "whisparr") { };
};
}

0 comments on commit 218901b

Please sign in to comment.