nix/moduler/users.nix
2025-11-23 21:52:13 +01:00

31 lines
645 B
Nix

{
config,
pkgs,
...
}:
{
sops.secrets.user-password = { };
users = {
defaultUserShell = pkgs.bash;
mutableUsers = false;
users = {
fw = {
hashedPasswordFile = config.sops.secrets.user-password.path;
isNormalUser = true;
description = "Fredrik Wastring";
extraGroups = [
"networkmanager"
"wheel"
"audio"
"docker"
"input"
];
openssh.authorizedKeys = {
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFpJBGPIfPB1BwSG7aoKqwfccyZSaU7J3xpJ8behMp9N fw@core"
];
};
};
};
};
}