mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
33 lines
637 B
Nix
33 lines
637 B
Nix
{ config, lib, ... }:
|
|
let
|
|
userSubmodule = lib.types.submodule {
|
|
options = {
|
|
name = lib.mkOption {
|
|
type = lib.types.str;
|
|
};
|
|
email = lib.mkOption {
|
|
type = lib.types.str;
|
|
};
|
|
};
|
|
};
|
|
peopleSubmodule = lib.types.submodule {
|
|
options = {
|
|
users = lib.mkOption {
|
|
type = lib.types.attrsOf userSubmodule;
|
|
};
|
|
myself = lib.mkOption {
|
|
type = lib.types.str;
|
|
description = ''
|
|
The name of the user that represents myself.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
in
|
|
{
|
|
options = {
|
|
people = lib.mkOption {
|
|
type = peopleSubmodule;
|
|
};
|
|
};
|
|
}
|