From fb8fa67657dfb31d1a278c2809b357ce03c298cd Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Sun, 5 Jan 2025 18:02:42 -0800 Subject: [PATCH] fix xdg --- .../modules/desktop/environments/hyprland.nix | 23 +++++++++++++++++++ system/desktop/environments/hyprland.nix | 8 +------ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/home/modules/desktop/environments/hyprland.nix b/home/modules/desktop/environments/hyprland.nix index 8ad5660..8ce9288 100644 --- a/home/modules/desktop/environments/hyprland.nix +++ b/home/modules/desktop/environments/hyprland.nix @@ -411,6 +411,29 @@ }; }; + xdg = { + enable = true; + mime.enable = true; + portal = { + enable = true; + xdgOpenUsePortal = true; + config = { + common = { + default = [ + "gtk" + ]; + }; + }; + extraPortals = with pkgs; [ + xdg-desktop-portal-gtk + ]; + }; + userDirs = { + enable = true; + createDirectories = true; + }; + }; + catppuccin = { gtk = { enable = true; diff --git a/system/desktop/environments/hyprland.nix b/system/desktop/environments/hyprland.nix index 79a534d..0fa3b18 100644 --- a/system/desktop/environments/hyprland.nix +++ b/system/desktop/environments/hyprland.nix @@ -14,13 +14,6 @@ thunar-media-tags-plugin ]; - xdg.portal = { - enable = true; - extraPortals = with pkgs; [ - xdg-desktop-portal-gtk - ]; - }; - security.pam.services.hyprlock = {}; fonts.fontconfig = { @@ -35,6 +28,7 @@ }; }; + environment.pathsToLink = ["/share/xdg-desktop-portal" "/share/applications"]; environment.systemPackages = with pkgs; [hyprpolkitagent]; systemd = {