mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
21 lines
463 B
Nix
21 lines
463 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
username,
|
|
email,
|
|
...
|
|
}: {
|
|
users = {
|
|
mutableUsers = false;
|
|
defaultUserShell = pkgs.zsh;
|
|
users.${username} = {
|
|
hashedPasswordFile = config.sops.secrets.tux-password.path;
|
|
isNormalUser = true;
|
|
extraGroups = ["networkmanager" "wheel" "storage"];
|
|
openssh.authorizedKeys.keys = [
|
|
''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL+OzPUe2ECPC929DqpkM39tl/vdNAXfsRnmrGfR+X3D ${email}''
|
|
];
|
|
};
|
|
};
|
|
}
|