puter/common/users.nix
2024-09-15 18:07:59 +02:00

22 lines
548 B
Nix

{config, ...}: {
age.secrets.user-lukas.file = ../secrets/user-lukas.age;
users = {
mutableUsers = false;
users = {
root = {
hashedPassword = "!";
openssh.authorizedKeys.keys = builtins.attrValues (import ../pubkeys.nix).hosts;
};
lukas = {
uid = 1000;
isNormalUser = true;
hashedPasswordFile = config.age.secrets.user-lukas.path;
openssh.authorizedKeys.keys = builtins.attrValues (import ../pubkeys.nix).users;
extraGroups = ["wheel"];
};
};
};
}