nix-config/tests/neovim.nix
Donovan Glover b368817c52
feat: Simplify imports by importing with specialArgs
This change makes it possible to import the modules that are required
from the flake inputs in the output modules themselves, thus preventing
users from having to manually import those modules.

This simplifies things overall and was made possible by the specialArgs
option that allowed these flake inputs to be passed into our container.
2024-04-05 09:37:30 -04:00

18 lines
401 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.nixosModules) system shell;
};
};
testScript = /* python */ ''
output = machine.succeed("echo 'Hello world'")
assert "Hello world" in output
'';
}