2023-11-27 20:14:31 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
lib.mkIf config.test.enableBig {
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
extraPortals =
|
|
|
|
[ pkgs.xdg-desktop-portal-hyprland pkgs.xdg-desktop-portal-wlr ];
|
|
|
|
configPackages = [ pkgs.hyprland ];
|
|
|
|
config = { sway.default = [ "wlr" "gtk" ]; };
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2024-03-19 03:20:58 +01:00
|
|
|
assertFileExists home-path/share/systemd/user/xdg-desktop-portal.service
|
|
|
|
assertFileExists home-path/share/systemd/user/xdg-desktop-portal-wlr.service
|
|
|
|
assertFileExists home-path/share/systemd/user/xdg-desktop-portal-hyprland.service
|
2023-11-27 20:14:31 +01:00
|
|
|
|
2024-03-19 03:20:58 +01:00
|
|
|
assertFileContent home-path/share/xdg-desktop-portal/portals/hyprland.portal \
|
2023-11-27 20:14:31 +01:00
|
|
|
${pkgs.xdg-desktop-portal-hyprland}/share/xdg-desktop-portal/portals/hyprland.portal
|
2024-03-19 03:20:58 +01:00
|
|
|
assertFileContent home-path/share/xdg-desktop-portal/portals/wlr.portal \
|
2023-11-27 20:14:31 +01:00
|
|
|
${pkgs.xdg-desktop-portal-wlr}/share/xdg-desktop-portal/portals/wlr.portal
|
|
|
|
|
2024-03-19 03:20:58 +01:00
|
|
|
assertFileContent home-path/share/xdg-desktop-portal/hyprland-portals.conf \
|
2023-11-27 20:14:31 +01:00
|
|
|
${pkgs.hyprland}/share/xdg-desktop-portal/hyprland-portals.conf
|
2024-03-19 03:20:58 +01:00
|
|
|
assertFileContent home-files/.config/xdg-desktop-portal/sway-portals.conf \
|
2023-11-27 20:14:31 +01:00
|
|
|
${./sway-portals-expected.conf}
|
|
|
|
'';
|
|
|
|
}
|