dev: relocate nvim/nvim-flake assertion

This commit is contained in:
NotAShelf 2023-04-02 20:15:24 +03:00
parent 87f53227ce
commit 43d159c2ee
No known key found for this signature in database
GPG Key ID: F0D14CCB5ED5AA22
2 changed files with 6 additions and 9 deletions

View File

@ -12,5 +12,11 @@ in {
assertion = cfg.kommentary.enable;
message = "Kommentary has been deprecated in favor";
}
mkIf
(config.programs.neovim-flake.enable)
{
assertion = !config.programs.neovim.enable;
message = "You cannot use neovim-flake together with vanilla neovim.";
}
];
}

View File

@ -46,13 +46,4 @@ in {
config = mkIf cfg.enable {
home.packages = [set.neovim];
};
assertions = mkMerge [
mkIf
(config.programs.neovim-flake.enable)
{
assertion = !config.programs.neovim.enable;
message = "You cannot use neovim-flake together with vanilla neovim.";
}
];
}