summaryrefslogtreecommitdiff
path: root/modules/nixos/traits/secrets.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/traits/secrets.nix')
-rw-r--r--modules/nixos/traits/secrets.nix39
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/nixos/traits/secrets.nix b/modules/nixos/traits/secrets.nix
deleted file mode 100644
index 0423183..0000000
--- a/modules/nixos/traits/secrets.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- config,
- lib,
- inputs,
- ...
-}:
-
-let
- cfg = config.traits.secrets;
-in
-
-{
- options.traits.secrets = {
- enable = lib.mkEnableOption "secrets management";
-
- secretsDir = lib.mkOption {
- type = lib.types.path;
- default = inputs.self + "/secrets/${config.networking.hostName}";
- defaultText = lib.literalExample "inputs.self + \"/secrets/\${config.networking.hostName}\"";
- description = "Path to your `secrets.nix` subdirectory.";
- };
- };
-
- imports = [ inputs.agenix.nixosModules.default ];
-
- config = lib.mkIf cfg.enable (
- lib.mkMerge [
- {
- _module.args = {
- inherit (cfg) secretsDir;
- };
-
- age = {
- identityPaths = [ "/etc/age/key" ];
- };
- }
- ]
- );
-}