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
|
|
@ -2,6 +2,18 @@
|
|||
"lxc": {
|
||||
"lxc.mount.entry": [
|
||||
"/dev/net/tun dev/net/tun none bind,optional,create=file"
|
||||
],
|
||||
"lxc.idmap": [
|
||||
"u 0 100000 8000",
|
||||
"g 0 100000 8000",
|
||||
"u 8000 8000 128",
|
||||
"g 8000 8000 256",
|
||||
"u 8128 108128 57406",
|
||||
"g 8256 108256 57278",
|
||||
"u 65534 65534 1",
|
||||
"g 65534 65534 1",
|
||||
"u 65535 165535 1",
|
||||
"g 65535 165535 1"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,8 +16,14 @@
|
|||
'';
|
||||
in {
|
||||
users.users.${username} = {
|
||||
uid = 4000;
|
||||
hashedPasswordFile = config.sops.secrets.tf-proxmox-passwd.path;
|
||||
isNormalUser = true;
|
||||
autoSubUidGidRange = false;
|
||||
group = username;
|
||||
};
|
||||
users.groups.${username} = {
|
||||
gid = config.users.users.${username}.uid;
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue