nixcfg/nixosModules/user/aly/default.nix

27 lines
683 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 {
2024-04-29 23:45:16 -04:00
description = "Hashed password for user aly.";
2024-04-26 22:55:43 -04:00
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-05-22 20:30:31 -04:00
linger = true;
2024-04-26 22:55:43 -04:00
hashedPassword = config.alyraffauf.user.aly.password;
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
};
};
}