hosts/legion: init

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-14 23:56:47 +03:00
parent 84080b8952
commit 6d393175f6
14 changed files with 631 additions and 0 deletions

25
hosts/legion/users.nix Normal file
View File

@ -0,0 +1,25 @@
{
inputs,
config,
pkgs,
...
}: let
inherit (config.sops) secrets;
inherit (inputs) mysecrets;
in {
nix.settings.trusted-users = ["user" "nix-ssh"];
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 (f: "${mysecrets}/ssh/user/${f}") [
"id_dunamis_ed25519.pub"
"id_eldrid_ed25519.pub"
"id_sarien_ed25519.pub"
];
};
};
}