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; assertion = cfg.kommentary.enable;
message = "Kommentary has been deprecated in favor"; 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 { config = mkIf cfg.enable {
home.packages = [set.neovim]; 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.";
}
];
} }