From b5157acb6f8cfc8d5bc7337dac977173e98ec880 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 6 Jul 2020 12:51:26 +0200 Subject: Fix error when running home-manager outside of X --- user/settings/xresources.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'user') 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 ''; }; } -- cgit 1.4.1