fix(secrets): add enable option
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user