From 365d0b60122c3863040e6a4f5ae874a54fd0271c Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sat, 17 Feb 2024 16:28:05 +0530 Subject: [PATCH] mess around with portals --- home/default.nix | 12 +++++++++++- hosts/skipper/default.nix | 11 ++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/home/default.nix b/home/default.nix index dc6aa00..a264351 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,4 @@ -_: { +{ pkgs, ... }: { imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ]; home.stateVersion = "23.11"; @@ -17,6 +17,16 @@ _: { "x-scheme-handler/tg" = [ "org.telegram.desktop.desktop" ]; }; }; + portal = { + xdgOpenUsePortal = true; + extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ]; + config = { + common = { + default = [ "gtk" ]; + }; + }; + configPackages = with pkgs; [ hyprland ]; + }; userDirs.enable = true; desktopEntries."nixos-manual" = { diff --git a/hosts/skipper/default.nix b/hosts/skipper/default.nix index 9304bfd..f2e2771 100644 --- a/hosts/skipper/default.nix +++ b/hosts/skipper/default.nix @@ -62,15 +62,8 @@ xdg.portal = { enable = true; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ]; - config = { - common = { - default = [ "gtk" ]; - }; - hyprland = { - default = [ "hyprland" "gtk" ]; - }; - }; + config.common.default = [ "gtk" ]; + xdgOpenUsePortal =true; }; system.stateVersion = "23.11";