mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat: static UIDs
This commit is contained in:
parent
6671103eba
commit
602eda1012
13 changed files with 102 additions and 34 deletions
17
nixos/users/arc.nix
Normal file
17
nixos/users/arc.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
users.users.arc = { name, ... }: {
|
||||
uid = 8001;
|
||||
isNormalUser = true;
|
||||
autoSubUidGidRange = false;
|
||||
group = name;
|
||||
extraGroups = [ "users" "peeps" "kyuuto" "wheel" ];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ8Z6briIboxIdedPGObEWB6QEQkvxKvnMW/UVU9t/ac mew-pgp"
|
||||
];
|
||||
};
|
||||
users.groups.arc = { name, ... }: {
|
||||
gid = config.users.users.${name}.uid;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue