nixcfg/nixosModules/user/aly/default.nix

29 lines
688 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
inputs,
pkgs,
lib,
config,
...
}: {
options = {
2024-05-27 21:39:30 -04:00
alyraffauf.user.aly = {
enable = lib.mkEnableOption "Enables Aly's user.";
password = lib.mkOption {
description = "Hashed password for user aly.";
type = lib.types.str;
};
2024-04-26 22:55:43 -04:00
};
};
config = lib.mkIf config.alyraffauf.user.aly.enable {
users.users.aly = {
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-05-27 21:39:30 -04:00
isNormalUser = true;
linger = true;
openssh.authorizedKeys.keys = config.users.users.root.openssh.authorizedKeys.keys;
};
};
}