mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 19:23:56 -05:00
30 lines
934 B
Nix
30 lines
934 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.user.aly.enable = lib.mkEnableOption "Enables Aly's user.";
|
|
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";
|
|
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
|
|
hashedPassword = config.alyraffauf.user.aly.password;
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOuRiyf9Fbl3Plqqzy5YkE2UJv8evF8YI9eG7Iu2CIRa aly@petalburg"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINHdpGTfjmnnau18CowChY4hPn/fzRkgJvXFs+yPy74I aly@mauville"
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJVI6aNp95f/xsg6N+PRplmGi9MYGnfniL9/jdza3GXt aly@lavaridge"
|
|
];
|
|
};
|
|
};
|
|
}
|