Add rule to link nvim config only

This commit is contained in:
Evie Litherland-Smith 2023-05-04 13:02:05 +01:00
parent fe62852767
commit 9478fdd9ca

View file

@ -4,7 +4,7 @@ HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)-$(USER).nix
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
HOMEMANAGER_CONFIG_DIR := $(CONFIG_DIR)/home-manager
.PHONY: default all clean nixos home
.PHONY: default all clean nixos home nvim
default:
[ -e /etc/nixos/ ] && make nixos || make home
@ -33,3 +33,8 @@ $(HOMEMANAGER_CONFIG_DIR)/home.nix: $(HOMEMANAGER_CONFIG_DIR) /nix
$(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR):
mkdir -p $@
nvim: $(CONFIG_DIR)/nvim
$(CONFIG_DIR)/nvim: $(CONFIG_DIR)
ln -s $(PWD)/home/tui/config/nvim $@