nixcfg/nixosModules/user/aly/default.nix

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