den
 1{
 2  lib,
 3  den,
 4  ...
 5}: let
 6  inherit (den.lib) __findFile;
 7in {
 8  den.aspects.hpcesia.includes = [
 9    <den/primary-user>
10  ];
11
12  den.aspects.hpcesia.nixos = {config, ...}: {
13    users.users.hpcesia = {
14      description = "HPCesia";
15      hashedPasswordFile = config.vaultix.secrets.user-hpcesia-hashed-password.path;
16      extraGroups =
17        [
18          "nix-secrets-ssh-hosts"
19        ]
20        ++ (lib.optionals config.virtualisation.podman.enable ["podman"])
21        ++ (lib.optionals config.virtualisation.docker.enable ["docker"])
22        ++ (lib.optionals config.programs.gamemode.enable ["gamemode"]);
23      openssh.authorizedKeys.keys = [
24        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFMKaGC2I3an4AJDeWzVx5vhm63+kxi6zJNdh7yEp6CK hpcesia@kevin"
25      ];
26    };
27
28    users.groups.nix-secrets-ssh-hosts = {};
29
30    vaultix.secrets.user-hpcesia-hashed-password.file = ./hashed-password.age;
31  };
32}