mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-16 15:31:52 +02:00
Added assertions
This commit is contained in:
parent
5a222885fc
commit
6ad7575d6f
5 changed files with 27 additions and 12 deletions
|
@ -11,13 +11,19 @@ in
|
|||
programs.nixvim = mkOption {
|
||||
type = types.submodule ((modules pkgs) ++ [{
|
||||
options.enable = mkEnableOption "nixvim";
|
||||
config.wrapRc = mkForce true;
|
||||
config.wrapRc = mkForce true;
|
||||
}]);
|
||||
};
|
||||
nixvim.helpers = shared.helpers;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = [ cfg.finalPackage ];
|
||||
};
|
||||
config = mkIf cfg.enable mkMerge [
|
||||
{
|
||||
environment.systemPackages = [ cfg.finalPackage ];
|
||||
}
|
||||
{
|
||||
warnings = cfg.warnings;
|
||||
assertions = cfg.assertions;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue