summaryrefslogtreecommitdiff
path: root/modules/nixos/traits/secrets.nix
diff options
context:
space:
mode:
authorSeth Flynn <[email protected]>2025-02-13 20:45:30 -0500
committerSeth Flynn <[email protected]>2025-02-13 22:09:11 -0500
commitfc553d09d464ddde2ce34cffa0200f18004a5d38 (patch)
tree0a30625e2128ec3d5cc10c8fc294aaea73a1a4cc /modules/nixos/traits/secrets.nix
parent1ab6099032d0ecaffcbe2a319ee57118ce619fdc (diff)
nixos/agenix: make it a mixin
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" ];
- };
- }
- ]
- );
-}