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

@@ -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
];
};
}