puter/common/users.nix

20 lines
492 B
Nix
Raw Normal View History

2024-02-04 20:51:11 +00:00
{config, ...}: {
age.secrets.user-lukas.file = ../secrets/user-lukas.age;
users = {
2024-07-01 22:06:05 +00:00
groups.lukas.gid = 1000;
2024-03-08 21:46:46 +00:00
2024-02-04 20:51:11 +00:00
users = {
root.hashedPassword = "!";
lukas = {
2024-07-01 22:06:05 +00:00
uid = 1000;
2024-02-04 20:51:11 +00:00
isNormalUser = true;
hashedPasswordFile = config.age.secrets.user-lukas.path;
2024-04-13 20:29:14 +00:00
openssh.authorizedKeys.keys = builtins.attrValues (import ../pubkeys.nix).users;
2024-02-18 13:28:33 +00:00
extraGroups = ["wheel" "networkmanager" "gamemode"];
2024-02-04 20:51:11 +00:00
linger = true;
};
};
};
}