Nix configurations for my homelab
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use nautilus as the file chooser instead of the gtk3 file picker

yemou ae9b97a0 af85bb42

+18 -3
+18 -3
modules/gui.nix
··· 1 1 { lib, pkgs, yemou-scripts, ... }: { 2 - nixpkgs.overlays = [ yemou-scripts.overlays.default ]; 2 + nixpkgs.overlays = [ 3 + yemou-scripts.overlays.default 4 + (final: prev: { 5 + nautilus = prev.nautilus.overrideAttrs (finalAttrs: prevAttrs: { 6 + postInstall = (prevAttrs.postInstall or "") + '' 7 + mkdir -p $out/share/xdg-desktop-portal/portals 8 + cat > $out/share/xdg-desktop-portal/portals/nautilus.portal <<EOF 9 + [portal] 10 + DBusName=org.gnome.Nautilus 11 + Interfaces=org.freedesktop.impl.portal.FileChooser 12 + EOF 13 + ''; 14 + }); 15 + }) 16 + ]; 3 17 4 18 imports = [ ./machineInfo.nix ]; 5 19 mInfo.gui = true; ··· 11 25 extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; 12 26 config.river = { 13 27 default = lib.mkForce "gtk"; 28 + "org.freedesktop.impl.portal.FileChooser" = "nautilus"; 29 + "org.freedesktop.impl.portal.Inhibit" = "none"; 30 + "org.freedesktop.impl.portal.ScreenCast" = "wlr"; 14 31 "org.freedesktop.impl.portal.Screenshot" = "wlr"; 15 - "org.freedesktop.impl.portal.ScreenCast" = "wlr"; 16 - "org.freedesktop.impl.portal.Inhibit" = "none"; 17 32 }; 18 33 }; 19 34 mime.enable = true;