mirror of
https://github.com/nix-community/home-manager
synced 2024-12-27 12:19:48 +01:00
ee5673246d
Ported from https://github.com/hyprwm/Hyprland/blob/main/nix/hm-module.nix which was adapted from the sway module. Co-authored-by: Robert Helgesson <robert@rycee.net>
21 lines
681 B
Nix
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"
|
|
'';
|
|
}
|