1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-11 03:21:08 +01:00
home-manager/tests/modules/services/hyprland/inconsistent-config.nix
Austin Horstman 06c1392ca8 tests: implement auto importing for modules
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-06-22 23:58:37 -05:00

20 lines
574 B
Nix

{ config, ... }:
{
wayland.windowManager.hyprland = {
enable = true;
plugins = [
"/path/to/plugin1"
(config.lib.test.mkStubPackage { name = "foo"; })
];
};
test.asserts.warnings.expected = [
"You have enabled hyprland.systemd.enable 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"
'';
}