nix-config/tests/hyprland.nix
Donovan Glover 30e0239cf7
flake.nix: Dynamically import tests
Makes it possible to add new test files to the tests directory and have
everything instantly working.
2024-04-08 10:33:18 -04:00

19 lines
414 B
Nix

# TODO: Write test to ensure that Hyprland starts with basic config
let
inherit (builtins) attrValues;
in
(import ../lib.nix) {
name = "hyprland";
nodes.machine = { nix-config, ... }: {
imports = attrValues {
inherit (nix-config.nixosModules) system desktop;
};
};
testScript = /* python */ ''
output = machine.succeed("echo 'Hello world'")
assert "Hello world" in output
'';
}