Move mimeApps, implemented at wrong level

This commit is contained in:
Evie Litherland-Smith 2023-09-13 17:41:29 +01:00
parent 05077d26d9
commit 84c189b093
2 changed files with 16 additions and 14 deletions

View file

@ -38,15 +38,4 @@
style = "gtk2"; style = "gtk2";
platformTheme = "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" ];
};
};
} }

View file

@ -65,9 +65,22 @@
}; };
}; };
}; };
xdg.portal = { xdg = {
enable = true; portal = {
extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; 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 = { programs = {
hyprland = { hyprland = {