mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 16:23:55 -05:00
25 lines
594 B
Nix
25 lines
594 B
Nix
{
|
|
inputs,
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.user.dustin.enable = lib.mkEnableOption "Enables Dustin's user.";
|
|
alyraffauf.user.dustin.password = lib.mkOption {
|
|
description = "Whether to sync music folder.";
|
|
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;
|
|
};
|
|
};
|
|
}
|