nixos-config/tests/lib/nixvim.nix

29 lines
482 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;
};
}