diff --git a/system/desktop.nix b/system/desktop.nix index 5c4423a1..136b822c 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -38,4 +38,15 @@ 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" ]; + }; + }; }