2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-28 16:13:46 -04:00
|
|
|
options = {
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.user.aly.enable = lib.mkEnableOption "Enables Aly's user.";
|
2024-04-26 22:55:43 -04:00
|
|
|
alyraffauf.user.aly.password = lib.mkOption {
|
|
|
|
description = "Whether to sync music folder.";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.user.aly.enable {
|
2024-03-28 16:13:46 -04:00
|
|
|
users.users.aly = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Aly Raffauf";
|
2024-04-07 22:16:33 -04:00
|
|
|
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
2024-04-26 22:55:43 -04:00
|
|
|
hashedPassword = config.alyraffauf.user.aly.password;
|
2024-04-29 23:10:26 -04:00
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuRiyf9Fbl3Plqqzy5YkE2UJv8evF8YI9eG7Iu2CIRa aly@petalburg"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINHdpGTfjmnnau18CowChY4hPn/fzRkgJvXFs+yPy74I aly@mauville"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJVI6aNp95f/xsg6N+PRplmGi9MYGnfniL9/jdza3GXt aly@lavaridge"
|
|
|
|
];
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|