mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 09:49:45 +01:00
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.
19 lines
469 B
Nix
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
|
|
'';
|
|
}
|