# This file is inspired by the `nixos/modules/misc/ids.nix` # file in nixpkgs. {lib, ...}: { options.vhack.constants = { ids.uids = lib.mkOption { internal = true; description = '' The user IDs used in the vhack.eu nixos config. ''; type = lib.types.attrsOf lib.types.int; }; ids.gids = lib.mkOption { internal = true; description = '' The group IDs used in the vhack.eu nixos config. ''; type = lib.types.attrsOf lib.types.int; }; }; config.vhack.constants = { ids.uids = { acme = 328; dhcpcd = 329; nscd = 330; sshd = 331; systemd-oom = 332; # As per the NixOS file, the uids should not be greater or equal to 400; }; ids.gids = { acme = 328; dhcpcd = 329; nscd = 330; sshd = 331; systemd-oom = 332; resolvconf = 333; # This group is not matched to an user? systemd-coredump = 151; # matches systemd-coredump user # The gid should match the uid. Thus should not be >= 400; }; }; }