nixcfg/nixosModules/user/aly/default.nix

30 lines
934 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
inputs,
pkgs,
lib,
config,
...
}: {
options = {
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;
};
};
config = lib.mkIf config.alyraffauf.user.aly.enable {
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"
];
};
};
}