diff --git a/lib/assertions.nix b/lib/assertions.nix index 49ea8ac..66e0317 100644 --- a/lib/assertions.nix +++ b/lib/assertions.nix @@ -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."; + } ]; } diff --git a/lib/module/default.nix b/lib/module/default.nix index ae97a26..7689aef 100644 --- a/lib/module/default.nix +++ b/lib/module/default.nix @@ -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."; - } - ]; }