nixos-config/tests/lib/nixvim.nix

24 lines
470 B
Nix

{ pkgs, lib, self }:
let
nixvimConfig = {
plugins.lightline.enable = true;
plugins.neorg.enable = true;
};
nixosConfig = { programs.firefox.enable = true; };
nixvimConfig' = { inherit nixosConfig; } // nixvimConfig;
in lib.runTests {
testNixvimIsStandalone = {
expr = self.nixvim.isStandalone nixvimConfig;
expected = true;
};
testNixvimIsStandalone2 = {
expr = self.nixvim.isStandalone nixvimConfig';
expected = false;
};
}