nixcfg/nixosModules/user/aly/default.nix

25 lines
573 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;
};
};
}