nix-conf/nixos-modules/users/builder/default.nix
2024-08-06 20:57:14 +02:00

26 lines
556 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.jopejoe1.user.builder;
in
{
options.jopejoe1.user.builder = {
enable = lib.mkEnableOption "Enable builder user";
};
config = lib.mkIf cfg.enable {
users.users.builder = {
isNormalUser = true;
description = "Build User";
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGvmivSRjYMSo6+mxChJ7n6k4no4Vkxb6r0In9ZjcqFY root@omoikane"
];
};
};
}