Files
nixos-blueprint/hosts/dunamis/users.nix
unexplrd 8464dc0084 yeah
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-25 14:42:38 +02:00

28 lines
578 B
Nix

{
inputs,
config,
pkgs,
...
}: let
sopSec = config.sops.secrets;
secrets = inputs.mysecrets;
in {
nix.settings.trusted-users = [
"user"
"nix-ssh"
];
users.mutableUsers = false;
users.users = {
user = {
hashedPasswordFile = sopSec."user-password-hashed".path;
isNormalUser = true;
extraGroups = ["wheel" "video" "libvirtd" "dialout"];
shell = pkgs.fish;
openssh.authorizedKeys.keyFiles = [
"${secrets}/ssh/id_ed25519_sarien_user.pub"
"${secrets}/ssh/id_ed25519_eldrid_user.pub"
];
};
};
}