blob: 564f1f0784c58295eabd4332533bd3c60cc3fc31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ config, lib, ... }:
let
inherit (lib) mkOption types;
cfg = config.userdata;
in
{
options.userdata = {
name = mkOption {
type = types.str;
default = "sinan";
description = "Owner's username";
};
nameFq = mkOption {
type = types.str;
default = "sinanmohd";
description = "Owner's fully qualified username";
};
domain = mkOption {
type = types.str;
default = "sinanmohd.com";
description = "Owner's domain";
};
email = mkOption {
type = types.str;
default = "${cfg.name}@${cfg.domain}";
description = "Owner's email";
};
};
}
|