fix(secrets): add enable option

This commit is contained in:
2026-05-22 10:57:14 +02:00
parent 1f115f8738
commit 1255083ad6
5 changed files with 18 additions and 11 deletions

View File

@@ -64,6 +64,7 @@
};
anki.enable = true;
k8s.k9s.enable = true;
secrets.enable = true;
taskwarrior.enable = true;
audio.enable = true;
ssh.enable = true;

View File

@@ -60,6 +60,7 @@
};
anki.enable = true;
k8s.k9s.enable = true;
secrets.enable = true;
taskwarrior.enable = true;
secrets.enable = true;
my.yubikey.enable = true;

View File

@@ -96,6 +96,7 @@
my.stylix.enable = true;
git.github.enable = true;
git.gitlab.enable = true;
secrets.enable = true;
secrets.vault.enable = true;
bruno.enable = true;
docker.enable = true;

View File

@@ -1,13 +1,19 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ./vault.nix ];
home.packages = with pkgs; [
age
age-plugin-yubikey # TODO: only needed when using Yubikey
sops
];
options.secrets.enable = lib.mkEnableOption "secrets";
config = lib.mkIf config.secrets.enable {
home.packages = with pkgs; [
age
age-plugin-yubikey
sops
];
};
}