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