-
Couldn't load subscription status.
- Fork 142
Open
Description
Currently you have this where I'd have to rely on assertions:
config = mkIf (cfg.secrets != {}) (mkMerge [I currently have to do this to disable agenix:
let
cfg = config.repo.common.secrets;
ragenix = import inputs.ragenix.nixosModules.default;
agenix-rekey = import "${inputs.agenix-rekey}/modules/agenix-rekey.nix" pkgs;
in {
imports = [
# Hacky workaround since the modules don't have enable options
({ pkgs, ... }@args: ragenix args // {
config = lib.mkIf cfg (ragenix args).config;
})
({ pkgs, ... }@args: agenix-rekey args // {
config = lib.mkIf cfg (agenix-rekey args).config;
})
];Now the reason I need to disable agenix is because I import its module in all hosts in my config repo but live boot images don't have anything I could put into hostPubkey (and it just adds bloat)
Metadata
Metadata
Assignees
Labels
No labels