-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.nix
More file actions
38 lines (33 loc) · 1.02 KB
/
vars.nix
File metadata and controls
38 lines (33 loc) · 1.02 KB
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
31
32
33
34
35
36
37
38
{ lib, config, ... }:
{
options.vars = {
mainUser = lib.mkOption {
description = "Name of the main user of the system";
default = "alex";
type = lib.types.str;
};
mainUserUid = lib.mkOption {
description = "Uid of the main user of the system";
default = 12306;
type = lib.types.int;
};
homeDirectory = lib.mkOption {
description = "Home directory of the main user of the system";
default = "/home/${config.vars.mainUser}";
type = lib.types.path;
};
masterAgeDecryptionKeyPath = lib.mkOption {
description = "SSH and other keys directory of the main user of the system";
default = "${config.vars.homeDirectory}/keys/${config.vars.mainUser}_secrets_1";
type = lib.types.path;
};
# hostname = lib.mkOption {
# description = "The hostname for the system";
# default = "default-hostname";
# };
# timeZone = lib.mkOption {
# description = "The time zone for the system";
# default = "UTC";
# };
};
}