1
Fork 0

Trying to get xdg portals to work

This commit is contained in:
Matei Adriel 2023-04-27 15:36:14 +02:00
parent a14ae58e0b
commit 0221b9abb1
No known key found for this signature in database
4 changed files with 15 additions and 8 deletions

View file

@ -19,14 +19,16 @@
comma # Intstall and run programs by sticking a , before them comma # Intstall and run programs by sticking a , before them
bc # Calculator bc # Calculator
ncdu # TUI disk usage ncdu # TUI disk usage
du-dust # Similar to du and ncdu in purpose.
ripgrep # Better grep ripgrep # Better grep
fd # Better find fd # Better find
sd # Better sed
httpie # Better curl httpie # Better curl
mkpasswd # Hash passwords mkpasswd # Hash passwords
neofetch # Display system information neofetch # Display system information
zip # Zipping files zip # Zipping files
unzip # Unzipping files unzip # Unzipping files
unrar # For extracting shit from rars unrar # For extracting shit from rars
sloc # Useless but fun line of code counter tokei # Useless but fun line of code counter (sloc alternative)
]; ];
} }

View file

@ -184,12 +184,12 @@
# {{{ Make firefox the default # {{{ Make firefox the default
# Use firefox as the default browser to open stuff. # Use firefox as the default browser to open stuff.
# xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
# "text/html" = [ "firefox.desktop" ]; "text/html" = [ "firefox.desktop" ];
# "text/xml" = [ "firefox.desktop" ]; "text/xml" = [ "firefox.desktop" ];
# "x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/http" = [ "firefox.desktop" ];
# "x-scheme-handler/https" = [ "firefox.desktop" ]; "x-scheme-handler/https" = [ "firefox.desktop" ];
# }; };
# Tell apps firefox is the default browser using an env var. # Tell apps firefox is the default browser using an env var.
home.sessionVariables.BROWSER = "firefox"; home.sessionVariables.BROWSER = "firefox";

View file

@ -32,4 +32,9 @@
home.sessionVariables.QT_SCREEN_SCALE_FACTORS = 1.4; # Bigger text in qt apps home.sessionVariables.QT_SCREEN_SCALE_FACTORS = 1.4; # Bigger text in qt apps
satellite.dev.enable = true; # Simlink some stuff outside the store satellite.dev.enable = true; # Simlink some stuff outside the store
# Temp stuff
xsession.initExtra = ''
command -v dbus-update-activation-environment >/dev/null 2>&1 && dbus-update-activation-environment --systemd XDG_SESSION_CLASS XDG_CONFIG_DIRS XDG_DATA_DIRS XDG_SESSION_DESKTOP XDG_CURRENT_DESKTOP XDG_SESSION_TYPE DCONF_PROFILE XDG_DESKTOP_PORTAL_DIR DISPLAY WAYLAND_DISPLAY SWAYSOCK XMODIFIERS XCURSOR_SIZE XCURSOR_THEME GDK_PIXBUF_MODULE_FILE GIO_EXTRA_MODULES GTK_IM_MODULE QT_PLUGIN_PATH QT_QPA_PLATFORMTHEME QT_STYLE_OVERRIDE QT_IM_MODULE NIXOS_OZONE_WL || systemctl --user import-environment XDG_SESSION_CLASS XDG_CONFIG_DIRS XDG_DATA_DIRS XDG_SESSION_DESKTOP XDG_CURRENT_DESKTOP XDG_SESSION_TYPE DCONF_PROFILE XDG_DESKTOP_PORTAL_DIR DISPLAY WAYLAND_DISPLAY SWAYSOCK XMODIFIERS XCURSOR_SIZE XCURSOR_THEME GDK_PIXBUF_MODULE_FILE GIO_EXTRA_MODULES GTK_IM_MODULE QT_PLUGIN_PATH QT_QPA_PLATFORMTHEME QT_STYLE_OVERRIDE QT_IM_MODULE NIXOS_OZONE_WL
'';
} }

View file

@ -2,7 +2,7 @@
xdg.portal = { xdg.portal = {
enable = true; enable = true;
xdgOpenUsePortal = true; xdgOpenUsePortal = true;
extraPortals = [ pkgs.xdg-desktop-portal ]; extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
}; };
# HACK: copied from @lily on discord. # HACK: copied from @lily on discord.