From 9596e0e75c6a49083167ef6e2edca9cc448695e1 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 11 Feb 2023 19:14:07 -0600 Subject: env/users: implement mail client certificates --- env/users/default.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'env/users/default.nix') 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; + }); }; }; -- cgit v1.2.3