summaryrefslogtreecommitdiff
path: root/env/users/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-02-11 19:14:07 -0600
committerAlejandro Soto <alejandro@34project.org>2023-02-11 19:14:07 -0600
commit9596e0e75c6a49083167ef6e2edca9cc448695e1 (patch)
tree9262c44043d3a250e32a21d23fb3b37eb6efcccd /env/users/default.nix
parentb8a62165e4f3dd6a35ebad0dcaea0971d4323735 (diff)
env/users: implement mail client certificates
Diffstat (limited to '')
-rw-r--r--env/users/default.nix21
1 files changed, 19 insertions, 2 deletions
diff --git a/env/users/default.nix b/env/users/default.nix
index 3602630..0e77e0d 100644
--- a/env/users/default.nix
+++ b/env/users/default.nix
@@ -8,7 +8,19 @@ in
./mailbox.nix
];
- options.local = with types; {
+ options.local = with types; let
+ mailOption = mkOption {
+ default = { };
+
+ type = submodule {
+ options.certs = mkOption {
+ type = listOf str;
+ default = [ ];
+ };
+ };
+ };
+ in
+ {
sysadmin = mkOption {
type = str;
};
@@ -50,6 +62,8 @@ in
type = listOf str;
default = [ ];
};
+
+ mail = mailOption;
};
config.groups = mkBefore (optional config.sysadmin "wheel");
@@ -83,8 +97,11 @@ in
};
users = mkOption {
- type = attrsOf (submodule { });
default = { };
+
+ type = attrsOf (submodule {
+ options.mail = mailOption;
+ });
};
};