mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-06 10:26:52 +01:00
26 lines
556 B
Nix
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"
|
|
];
|
|
};
|
|
};
|
|
}
|