Files
nix/hosts/common/user/configs/options.nix
2024-07-08 20:01:55 +03:00

27 lines
476 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.";
};
};
in
{
options =
with lib;
with types;
{
users.users = mkOption { type = attrsOf (submodule userOptions); };
};
}