nix-config/tests/neovim.nix
Donovan Glover 267dda3224
chore: Add missing imports to tests
Necessary since system now depends on home-manager and desktop depends
on stylix, which also depends on home-manager.

Note that since conditional imports can't be used and we include the
system module inside of our containers which don't have access to self,
importing the required modules inside the module itself cannot be used.
2024-04-05 09:07:28 -04:00

19 lines
469 B
Nix

# TODO: Ensure that neovim config works without errors on startup
let
inherit (builtins) attrValues;
in (import ./lib.nix) {
name = "neovim";
nodes.machine = { self, pkgs, ... }: {
imports = attrValues {
inherit (self.inputs.home-manager.nixosModules) home-manager;
inherit (self.nixosModules) system shell;
};
};
testScript = /* python */ ''
output = machine.succeed("echo 'Hello world'")
assert "Hello world" in output
'';
}