From 84c189b0937a1852761431ecbd890f89e4667d42 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 13 Sep 2023 17:41:29 +0100 Subject: [PATCH] Move mimeApps, implemented at wrong level --- system/desktop.nix | 11 ----------- system/hyprland.nix | 19 ++++++++++++++++--- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/system/desktop.nix b/system/desktop.nix index 136b822c..5c4423a1 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -38,15 +38,4 @@ style = "gtk2"; platformTheme = "gtk2"; }; - xdg.mimeApp = { - enable = true; - defaultApplications = { - "image/jpeg" = [ "swayimg.desktop" "emacs.desktop" ]; - "image/png" = [ "swayimg.desktop" "emacs.desktop" ]; - }; - associations.added = { - "image/jpeg" = [ "swayimg.desktop" ]; - "image/png" = [ "swayimg.desktop" ]; - }; - }; } diff --git a/system/hyprland.nix b/system/hyprland.nix index 580ee1e9..3651b308 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -65,9 +65,22 @@ }; }; }; - xdg.portal = { - enable = true; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; + xdg = { + portal = { + enable = true; + extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; + }; + mimeApps = { + enable = true; + defaultApplications = { + "image/jpeg" = [ "swayimg.desktop" ]; + "image/png" = [ "swayimg.desktop" ]; + }; + associations.added = { + "image/jpeg" = [ "swayimg.desktop" ]; + "image/png" = [ "swayimg.desktop" ]; + }; + }; }; programs = { hyprland = {