1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-07-14 21:18:44 +02:00
parent 3f6dafe073
commit 79792e5a76
No known key found for this signature in database
24 changed files with 143 additions and 101 deletions

View file

@ -1,29 +1,6 @@
{
inputs,
config,
...
}:
let
inherit (config.users) mainUser;
in
{
age.secrets."user-${mainUser}".file = inputs.self + /secrets/users/${mainUser}.age;
users = {
mutableUsers = false;
mainUser = "helvetica";
users = {
root.hashedPassword = "!";
${mainUser} = {
description = "Helvetica";
uid = 1000;
isNormalUser = true;
hashedPasswordFile = config.age.secrets."user-${mainUser}".path;
openssh.authorizedKeys.keys = builtins.attrValues config.pubkeys.users;
extraGroups = [ "wheel" ]; # TODO remove
};
};
users.root.hashedPassword = "!";
};
}