Files
nixos-blueprint/hosts/dunamis/users.nix
unexplrd 50d5b54150 modules/home/programs/shell/fish.nix: add joshuto alias
hosts/dunamis/users.nix: concat in the function

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-31 23:09:29 +03:00

25 lines
555 B
Nix

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