wrappers: move assertion propagation to _shared.nix

This commit is contained in:
Matt Sturgeon 2024-09-24 11:25:43 +01:00
parent 6da94195c2
commit 87509bac1f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 36 additions and 42 deletions

View file

@ -53,6 +53,9 @@ in
_module.args.nixvimLib = lib.mkDefault config.lib.nixvim.extendedLib;
}
# Propagate nixvim's assertions to the host modules
(lib.mkIf cfg.enable { inherit (cfg) warnings assertions; })
# Propagate extraFiles to the host modules
(optionalAttrs (filesOpt != null) (
mkIf (!cfg.wrapRc) (