Fix error when running home-manager outside of X
Alan Pearce alan@alanpearce.eu
Mon, 06 Jul 2020 12:51:26 +0200
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M user/settings/xresources.nix → user/settings/xresources.nix
@@ -5,7 +5,9 @@ home.file.".xresources" = { 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 ''; }; }