nixcfg/nixosModules/user/dustin/default.nix

25 lines
581 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
2024-04-26 22:55:43 -04:00
inputs,
2024-04-07 22:16:33 -04:00
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.user.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
2024-04-26 22:55:43 -04:00
alyraffauf.user.dustin.password = lib.mkOption {
2024-04-30 16:33:05 -04:00
description = "Hashed password.";
2024-04-26 22:55:43 -04:00
type = lib.types.str;
};
};
config = lib.mkIf config.alyraffauf.user.dustin.enable {
users.users.dustin = {
isNormalUser = true;
description = "Dustin 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.dustin.password;
};
};
}