blob: 5711e9cfae15c90af530d82081ee8695d6735212 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# This file is inspired by the `nixos/modules/misc/ids.nix`
# file in nixpkgs.
{lib, ...}: {
options.soispha.constants = {
ids.uids = lib.mkOption {
internal = true;
description = ''
The user IDs used in this nixos config.
'';
type = lib.types.attrsOf (lib.types.ints.between 0 1000);
};
ids.gids = lib.mkOption {
internal = true;
description = ''
The group IDs used in this nixos config.
'';
type = lib.types.attrsOf (lib.types.ints.between 0 1000);
};
};
config.soispha.constants = {
ids.uids = {
# Keep this sorted with `!sort --numeric-sort --key=2 --field-separator="="`
dhcpcd = 992;
systemd-oom = 993;
sshd = 994;
rtkit = 995;
nscd = 996;
nm-iodine = 997;
fwupd-refresh = 998;
avahi = 999;
# As per the NixOS file, the uids should not be greater or equal to 400;
};
ids.gids = {
# Please add your groups to the users and inherit them here.
# This avoids having an user/group id mismatch.
dhcpcd = 987;
lpadmin = 988;
resolvconf = 989;
systemd-oom = 990;
systemd-coredump = 991;
sshd = 992;
rtkit = 993;
polkituser = 994;
nscd = 995;
msr = 996;
fwupd-refresh = 997;
avahi = 998;
adbusers = 999;
# The gid should match the uid. Thus should not be >= 400;
};
};
}
|