nix-conf/nixos-modules/users/builder/default.nix

27 lines
556 B
Nix
Raw Normal View History

2024-07-17 20:16:23 +02:00
{
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 {
2024-07-17 20:20:07 +02:00
users.users.builder = {
2024-07-17 20:16:23 +02:00
isNormalUser = true;
description = "Build User";
hashedPassword = "$2b$05$Uk84TY/RHlH8DIigUlFYjeorjTlCMEY9wN2pAcw5BLaPoc7dKiSsC";
openssh.authorizedKeys.keys = [
2024-08-06 20:57:14 +02:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGvmivSRjYMSo6+mxChJ7n6k4no4Vkxb6r0In9ZjcqFY root@omoikane"
2024-07-17 20:16:23 +02:00
];
};
};
}