27 lines
554 B
Nix
27 lines
554 B
Nix
{
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (config.sops) secrets;
|
|
inherit (inputs) mysecrets;
|
|
sshKeys = f: "${mysecrets}/ssh/user/id_${f}_ed25519.pub";
|
|
in {
|
|
users.mutableUsers = false;
|
|
users.users = {
|
|
user = {
|
|
hashedPasswordFile = secrets."user-password-hashed".path;
|
|
extraGroups = ["wheel" "video" "libvirtd" "dialout"];
|
|
isNormalUser = true;
|
|
shell = pkgs.fish;
|
|
openssh.authorizedKeys.keyFiles = map sshKeys [
|
|
"dunamis"
|
|
"eldrid"
|
|
"sarien"
|
|
"legion"
|
|
];
|
|
};
|
|
};
|
|
}
|