nixcfg/nixosModules/user/dustin/default.nix
2024-04-30 16:33:05 -04:00

25 lines
581 B
Nix

{
inputs,
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.user.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
alyraffauf.user.dustin.password = lib.mkOption {
description = "Hashed password.";
type = lib.types.str;
};
};
config = lib.mkIf config.alyraffauf.user.dustin.enable {
users.users.dustin = {
isNormalUser = true;
description = "Dustin Raffauf";
extraGroups = ["networkmanager" "wheel" "docker" "libvirtd" "video"];
hashedPassword = config.alyraffauf.user.dustin.password;
};
};
}