summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-07-06 12:51:26 +0200
committerAlan Pearce2020-07-06 12:51:26 +0200
commitb5157acb6f8cfc8d5bc7337dac977173e98ec880 (patch)
tree8726be773928dc3c68e04f48f139e0a2338be4e7
parentcbc125670e86c7ce9419b6e84fefeaa5c6ef20b4 (diff)
downloadnixfiles-b5157acb6f8cfc8d5bc7337dac977173e98ec880.tar.lz
nixfiles-b5157acb6f8cfc8d5bc7337dac977173e98ec880.tar.zst
nixfiles-b5157acb6f8cfc8d5bc7337dac977173e98ec880.zip
Fix error when running home-manager outside of X
-rw-r--r--user/settings/xresources.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/user/settings/xresources.nix b/user/settings/xresources.nix
index 6d290349..5ab0bb49 100644
--- a/user/settings/xresources.nix
+++ b/user/settings/xresources.nix
@@ -5,7 +5,9 @@
     recursive = true;
     source = ../xresources;
     onChange = ''
-      ${pkgs.xorg.xrdb}/bin/xrdb -merge .xresources/main
+      if [[ -n "$DISPLAY" ]]; then
+        ${pkgs.xorg.xrdb}/bin/xrdb -merge .xresources/main
+      fi
     '';
   };
 }