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";
};
};
}
+18 -2
View File
@@ -17,8 +17,24 @@
};
};
xdg = {
mime = {
enable = true;
defaultApplications = {
"application/pdf" = "firefox.desktop";
"audio/*" = [
"mpv.desktop"
];
"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.
xdg.portal = {
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = lib.mkForce [
@@ -36,5 +52,5 @@
};
};
};
};
}