refactor: use 'import-as-enable' pattern

This commit is contained in:
hektor committed 2026-03-11 21:25:32 +01:00
1 parent ed39959b61
commit 890146bc9d
15 files changed
+65 -170

No files matched your search

+4 -11
View File
@@ -1,20 +1,13 @@
{
config,
lib,
pkgs,
...
}:
{
options.secrets = {
enable = lib.mkEnableOption "secrets";
};
imports = [ ./vault.nix ];
config = lib.mkIf config.secrets.enable {
home.packages = with pkgs; [
sops
age
];
};
home.packages = with pkgs; [
sops
age
];
}