mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
fix(niri): move xdg.mime from home to os
This commit is contained in:
@@ -46,11 +46,4 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings.program_options.file_manager = "${pkgs.nautilus}/bin/nautilus";
|
settings.program_options.file_manager = "${pkgs.nautilus}/bin/nautilus";
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.mime = {
|
|
||||||
enable = true;
|
|
||||||
defaultApplications = {
|
|
||||||
"application/pdf" = "firefox.desktop";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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.
|
# For god's sake, never touch this code again, so much pain has been released on the following lines.
|
||||||
xdg.portal = {
|
portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
extraPortals = lib.mkForce [
|
extraPortals = lib.mkForce [
|
||||||
@@ -36,5 +52,5 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user