fix(desktop): only use one version of xdg-desktop-portal-hyprland
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2025-02-08 22:24:03 -05:00
parent 4927481b25
commit 4df69d9d50

View file

@ -42,11 +42,7 @@ in {
programs.hyprland = {
enable = true;
package = hyprCfg.finalPackage;
portalPackage =
hyprland
.packages
.${pkgs.system}
.xdg-desktop-portal-hyprland;
portalPackage = hyprCfg.finalPortalPackage;
};
xdg.portal = {
@ -69,6 +65,13 @@ in {
};
};
# Make sure we only use the package from the hyprland flake
nixpkgs.overlays = [
(final: prev: {
xdg-desktop-portal-hyprland = hyprCfg.finalPortalPackage;
})
];
home-manager.users.${cfg.user} = {
imports = [
./home/dev.nix
@ -92,6 +95,12 @@ in {
'';
});
portalPackage =
hyprland
.packages
.${pkgs.system}
.xdg-desktop-portal-hyprland;
systemd.variables = ["-all"];
settings = {