depot/third_party/home-manager/tests/modules/services/window-managers/hyprland/inconsistent-config.nix
Default email 75fa0ae5af Project import generated by Copybara.
GitOrigin-RevId: c3ab5ea047e6dc73df530948f7367455749d8906
2023-08-08 12:19:01 +02:00

21 lines
681 B
Nix

{ config, lib, ... }:
{
wayland.windowManager.hyprland = {
enable = true;
package = lib.makeOverridable
(attrs: config.lib.test.mkStubPackage { name = "hyprland"; }) { };
plugins =
[ "/path/to/plugin1" (config.lib.test.mkStubPackage { name = "foo"; }) ];
};
test.asserts.warnings.expected = [
"You have enabled hyprland.systemdIntegration or listed plugins in hyprland.plugins but do not have any configuration in hyprland.settings or hyprland.extraConfig. This is almost certainly a mistake."
];
test.asserts.warnings.enable = true;
nmt.script = ''
config=home-files/.config/hypr/hyprland.conf
assertFileExists "$config"
'';
}