summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-06-18 17:12:32 +0800
committerBobby Rong <rjl931189261@126.com>2023-06-18 17:23:57 +0800
commit013bb477b46eb7c8e45c86d4d433e885274bd8a2 (patch)
tree2d1dad4151ac7393278c4d6e73c47dd80676542c /nixos
parent7c67f006ea0e7d0265f16d7df07cc076fdffd91f (diff)
downloadnixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.tar
nixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.tar.gz
nixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.tar.bz2
nixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.tar.lz
nixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.tar.xz
nixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.tar.zst
nixpkgs-013bb477b46eb7c8e45c86d4d433e885274bd8a2.zip
nixos/pantheon: allow excluding pantheon-agent-geoclue2
Bash will raise syntax error for sessionCommands if sessionPath is empty.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/desktop-managers/pantheon.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/pantheon.nix b/nixos/modules/services/x11/desktop-managers/pantheon.nix
index c61c53642f4..0db4cca520f 100644
--- a/nixos/modules/services/x11/desktop-managers/pantheon.nix
+++ b/nixos/modules/services/x11/desktop-managers/pantheon.nix
@@ -113,6 +113,7 @@ in
 
       services.xserver.displayManager.sessionCommands = ''
         if test "$XDG_CURRENT_DESKTOP" = "Pantheon"; then
+            true
             ${concatMapStrings (p: ''
               if [ -d "${p}/share/gsettings-schemas/${p.name}" ]; then
                 export XDG_DATA_DIRS=$XDG_DATA_DIRS''${XDG_DATA_DIRS:+:}${p}/share/gsettings-schemas/${p.name}