Files
nix/users/common/options.nix
2024-06-21 00:08:02 +03:00

32 lines
691 B
Nix

{ lib, ... }:
let
userOptions = with lib; with types; { config, ... }: {
options.email = mkOption {
type = nullOr str;
description = "Email address of the user.";
};
options.fullName = mkOption {
type = nullOr str;
description = "Full name of the user.";
};
options.wallpaper = mkOption {
type = path;
description = "Path to the user's wallpaper.";
};
options.base16Scheme = mkOption {
type = path;
description = "Base16 scheme to use for the user's color palette.";
};
};
in {
options = with lib; with types; {
users.users = mkOption {
type = attrsOf (submodule userOptions);
};
};
}