diff options
author | Alan Pearce | 2020-07-06 12:51:26 +0200 |
---|---|---|
committer | Alan Pearce | 2020-07-06 12:51:26 +0200 |
commit | b5157acb6f8cfc8d5bc7337dac977173e98ec880 (patch) | |
tree | 8726be773928dc3c68e04f48f139e0a2338be4e7 | |
parent | cbc125670e86c7ce9419b6e84fefeaa5c6ef20b4 (diff) | |
download | nixfiles-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.nix | 4 |
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 ''; }; } |