1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-05 16:26:58 +00:00

hyprland: add null package tests

This commit is contained in:
Austin Horstman 2025-01-30 14:15:07 -06:00
parent fee01c9351
commit 86b0f3049c
4 changed files with 71 additions and 0 deletions

View file

@ -1,6 +1,9 @@
{
hyprland-simple-config = ./simple-config.nix;
hyprland-multiple-devices-config = ./multiple-devices-config.nix;
hyprland-null-all-packages-config = ./null-all-packages-config.nix;
hyprland-null-package-config = ./null-package-config.nix;
hyprland-null-portal-package-config = ./null-portal-package-config.nix;
hyprland-sourceFirst-false-config = ./sourceFirst-false-config.nix;
hyprland-inconsistent-config = ./inconsistent-config.nix;
}

View file

@ -0,0 +1,19 @@
{ ... }: {
wayland.windowManager.hyprland = {
enable = true;
package = null;
portalPackage = null;
settings = {
cursor = {
enable_hyprcursor = true;
sync_gsettings_theme = true;
};
};
};
nmt.script = ''
config=home-files/.config/hypr/hyprland.conf
assertFileExists "$config"
'';
}

View file

@ -0,0 +1,31 @@
{ ... }: {
wayland.windowManager.hyprland = {
enable = true;
package = null;
settings = {
cursor = {
enable_hyprcursor = true;
sync_gsettings_theme = true;
};
};
};
test.asserts.warnings.expected = [''
xdg-desktop-portal 1.17 reworked how portal implementations are loaded, you
should either set `xdg.portal.config` or `xdg.portal.configPackages`
to specify which portal backend to use for the requested interface.
https://github.com/flatpak/xdg-desktop-portal/blob/1.18.1/doc/portals.conf.rst.in
If you simply want to keep the behaviour in < 1.17, which uses the first
portal implementation found in lexicographical order, use the following:
xdg.portal.config.common.default = "*";
''];
test.asserts.warnings.enable = true;
nmt.script = ''
config=home-files/.config/hypr/hyprland.conf
assertFileExists "$config"
'';
}

View file

@ -0,0 +1,18 @@
{ ... }: {
wayland.windowManager.hyprland = {
enable = true;
portalPackage = null;
settings = {
cursor = {
enable_hyprcursor = true;
sync_gsettings_theme = true;
};
};
};
nmt.script = ''
config=home-files/.config/hypr/hyprland.conf
assertFileExists "$config"
'';
}