nix-config/modules/users/horseman.nix

46 lines
859 B
Nix

{
inputs,
outputs,
lib,
config,
pkgs,
...
}: let
inherit (lib) mkEnableOption mkIf mkOption types;
cfg = config.horseman.users.horseman;
in {
options = {
horseman.users.horseman = {
enable = mkEnableOption "Default user";
};
};
config = {
home-manager = {
extraSpecialArgs = {inherit inputs outputs;};
users.horseman = {
home = {
username = "horseman";
homeDirectory = "/home/horseman";
stateVersion = "24.11";
};
programs = {
home-manager.enable = true;
};
};
};
users.users.horseman = {
initialPassword = "1234";
isNormalUser = true;
openssh.authorizedKeys.keyFiles = [
../../config/ssh/authorized_keys
];
extraGroups = [
"wheel"
"docker"
];
};
};
}