From 5c99a9b471144e541f9fd423834f756d04687149 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Wed, 6 Mar 2024 22:19:14 +0530 Subject: [PATCH] override hyprland in xdph --- home/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/home/default.nix b/home/default.nix index 5d07385..d85b298 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,8 @@ -{ pkgs, ... }: { +{ config, pkgs, ... }: +let + hyprland = config.wayland.windowManager.hyprland.finalPackage; +in +{ imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ]; home.stateVersion = "23.11"; @@ -20,13 +24,17 @@ portal = { enable = true; xdgOpenUsePortal = true; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-gnome xdg-desktop-portal-hyprland ]; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + xdg-desktop-portal-gnome + (xdg-desktop-portal-hyprland.override { inherit hyprland; }) + ]; config = { common = { default = [ "gtk" ]; }; }; - configPackages = with pkgs; [ hyprland ]; + configPackages = [ hyprland ]; }; userDirs.enable = true;