Add secret support

This commit is contained in:
2022-02-22 00:59:57 +00:00
parent ac31486f6b
commit 8c61cea30d
19 changed files with 71 additions and 11 deletions

View File

@@ -52,6 +52,7 @@ let
];
_module.args = {
inherit (cfg) secretsPath;
pkgs' = allPkgs;
};
@@ -121,6 +122,7 @@ in
options = with lib.types; {
nixos = {
secretsPath = mkOpt' path null "Path to encrypted secret files.";
modules = mkOpt' (attrsOf commonOpts.moduleType) { } "NixOS modules to be exported by nixfiles.";
systems = mkOpt' (attrsOf (submodule systemOpts)) { } "NixOS systems to be exported by nixfiles.";
};