mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00:00
feat: assert on broken/unsupported config structures
This commit is contained in:
parent
7b5b7bfcce
commit
7ee66ea376
3 changed files with 29 additions and 0 deletions
|
@ -45,5 +45,14 @@ 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.";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue