feat: Finished user setup

This commit is contained in:
Jan-Bulthuis 2025-11-30 16:19:03 +01:00
parent 588bea133c
commit 34f179465d
2 changed files with 18 additions and 8 deletions

View File

@ -1,7 +1,7 @@
{
inputs,
pkgs,
lib,
config,
...
}:
@ -12,13 +12,23 @@
# Machine hostname
networking.hostName = "ws-think";
# Admin users
users.users.jan.extraGroups = [
# Set up users
sops.secrets."passwords/jan-hashed" = {
sopsFile = "${inputs.secrets}/secrets/ws-think.enc.yaml";
neededForUsers = true;
};
users.mutableUsers = false;
users.users.Jan = {
hashedPasswordFile = config.sops.secrets."passwords/jan-hashed".path;
# Extra admin groups
# TODO: Streamline setup of this
extraGroups = [
"wheel"
"wireshark"
"podman"
"libvirtd"
];
};
# Set up kerberos
security.krb5 = {