nixcfg/nixosModules/user/dustin/default.nix
2024-05-27 21:39:30 -04:00

27 lines
583 B
Nix

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