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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
+32
-16
@@ -17,24 +17,40 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# For god's sake, never touch this code again, so much pain has been released on the following lines.
|
xdg = {
|
||||||
xdg.portal = {
|
mime = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xdgOpenUsePortal = true;
|
defaultApplications = {
|
||||||
extraPortals = lib.mkForce [
|
"application/pdf" = "firefox.desktop";
|
||||||
pkgs.xdg-desktop-portal-wlr
|
"audio/*" = [
|
||||||
pkgs.xdg-desktop-portal-gtk
|
"mpv.desktop"
|
||||||
];
|
|
||||||
config = {
|
|
||||||
niri = {
|
|
||||||
default = lib.mkForce [
|
|
||||||
"gtk"
|
|
||||||
"wlr"
|
|
||||||
];
|
];
|
||||||
"org.freedesktop.impl.portal.ScreenCast" = [ "wlr" ];
|
"video/*" = [
|
||||||
"org.freedesktop.impl.portal.Screenshot" = [ "wlr" ];
|
"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" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user