nixos-config/users/default.nix
Sridhar Ratnakumar f0c0513fe3 Rm redundant args
2023-07-15 11:49:19 -04:00

44 lines
870 B
Nix

{ lib, ... }:
let
userSubmodule = lib.types.submodule {
options = {
name = lib.mkOption {
type = lib.types.str;
};
email = lib.mkOption {
type = lib.types.str;
};
sshKeys = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = ''
SSH public keys
'';
};
};
};
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.
Admin user in all contexts.
'';
};
};
};
in
{
options = {
people = lib.mkOption {
type = peopleSubmodule;
};
};
config = {
people = import ./config.nix;
};
}