1
0
Fork 0
puter/common/users.nix
2025-05-18 01:08:10 +02:00

29 lines
599 B
Nix

{
self,
config,
...
}:
let
inherit (config.users) mainUser;
in
{
age.secrets."user-${mainUser}".file = 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
};
};
};
}