diff options
author | Bobby Rong <rjl931189261@126.com> | 2023-06-18 17:12:32 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2023-06-18 17:23:57 +0800 |
commit | 013bb477b46eb7c8e45c86d4d433e885274bd8a2 (patch) | |
tree | 2d1dad4151ac7393278c4d6e73c47dd80676542c /nixos | |
parent | 7c67f006ea0e7d0265f16d7df07cc076fdffd91f (diff) | |
download | nixpkgs-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.nix | 1 |
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} |