From 0ddac86a6933a0e68e70064ad0181cf4c36efe6c Mon Sep 17 00:00:00 2001 From: Emmet Date: Fri, 11 Aug 2023 14:57:32 -0500 Subject: [PATCH] Fix home-manager being gc'd and adds x11/xdg optimizations --- profiles/work/configuration.nix | 9 +++++++++ system/wm/x11.nix | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/profiles/work/configuration.nix b/profiles/work/configuration.nix index af6e4bc2..4364e0ab 100644 --- a/profiles/work/configuration.nix +++ b/profiles/work/configuration.nix @@ -77,6 +77,7 @@ zsh git cryptsetup + home-manager ]; # I use zsh btw @@ -84,6 +85,14 @@ users.defaultUserShell = pkgs.zsh; programs.zsh.enable = true; + xdg.portal = { + enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal + pkgs.xdg-desktop-portal-gtk + ]; + }; + # It is ok to leave this unchanged for compatibility purposes system.stateVersion = "22.11"; diff --git a/system/wm/x11.nix b/system/wm/x11.nix index 59b53446..38aaec21 100644 --- a/system/wm/x11.nix +++ b/system/wm/x11.nix @@ -13,13 +13,13 @@ layout = "us"; xkbVariant = ""; xkbOptions = "caps:escape"; + excludePackages = [ pkgs.xterm ]; windowManager.xmonad = { enable = true; enableContribAndExtras = true; }; displayManager = { lightdm.enable = true; - defaultSession = "none+xmonad"; sessionCommands = '' xset -dpms xset s blank