fix(niri): move xdg.mime from home to os

This commit is contained in:
2026-05-10 22:09:10 +02:00
parent 10bdff1835
commit 34ae00d94e
2 changed files with 32 additions and 23 deletions
-7
View File
@@ -46,11 +46,4 @@
enable = true;
settings.program_options.file_manager = "${pkgs.nautilus}/bin/nautilus";
};
xdg.mime = {
enable = true;
defaultApplications = {
"application/pdf" = "firefox.desktop";
};
};
}
+32 -16
View File
@@ -17,24 +17,40 @@
};
};
# For god's sake, never touch this code again, so much pain has been released on the following lines.
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = lib.mkForce [
pkgs.xdg-desktop-portal-wlr
pkgs.xdg-desktop-portal-gtk
];
config = {
niri = {
default = lib.mkForce [
"gtk"
"wlr"
xdg = {
mime = {
enable = true;
defaultApplications = {
"application/pdf" = "firefox.desktop";
"audio/*" = [
"mpv.desktop"
];
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
"video/*" = [
"mpv.desktop"
];
"image/*" = [
"org.gnome.Loupe.desktop"
];
};
};
# For god's sake, never touch this code again, so much pain has been released on the following lines.
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = lib.mkForce [
pkgs.xdg-desktop-portal-wlr
pkgs.xdg-desktop-portal-gtk
];
config = {
niri = {
default = lib.mkForce [
"gtk"
"wlr"
];
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
};
};
};
};
}