From fb2ec8cd6bc1a6294059942f05ff490f095db940 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sun, 27 Jun 2021 19:48:42 +0200 Subject: [PATCH] home: secrets: use more specific type I will amend it if I need more types, but for now this is fine. --- home/secrets/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/secrets/default.nix b/home/secrets/default.nix index ac0e5b5..76ec2cf 100644 --- a/home/secrets/default.nix +++ b/home/secrets/default.nix @@ -14,7 +14,15 @@ let in throwOnCanary { options.my.secrets = mkOption { - type = types.attrs; + type = + let + valueType = with types; oneOf [ + int + str + (attrsOf valueType) + ]; + in + valueType; }; config.my.secrets = {