mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
b368817c52
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.
18 lines
401 B
Nix
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
|
|
'';
|
|
}
|