From 13b2dfa81ec3495e37ffbc953c636d62999f0732 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 28 Jun 2022 14:48:07 +0200 Subject: ... --- hosts/sif/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'hosts/sif') diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 45f2a87c..2b69bdd0 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix @@ -363,7 +363,7 @@ in { desktopManager.xterm.enable = true; windowManager.twm.enable = true; - displayManager.defaultSession = "xterm+twm"; + displayManager.defaultSession = "none+xmonad"; wacom.enable = true; libinput.enable = true; @@ -590,7 +590,17 @@ in { xdg.portal = { enable = true; gtkUsePortal = true; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; + extraPortals = let + gtk-portal = pkgs.xdg-desktop-portal-gtk.overrideAttrs (oldAttrs: { + postFixup = '' + ${oldAttrs.postFixup or ""} + + ${pkgs.gnused}/bin/sed -ri \ + 's|UseIn=gnome|UseIn=gnome;xterm+twm;none+xmonad|' \ + $out/share/xdg-desktop-portal/portals/gtk.portal + ''; + }; + in [ gtk-portal ]; }; system.stateVersion = "20.03"; -- cgit v1.2.3