Add rule to link nvim config only
This commit is contained in:
parent
fe62852767
commit
9478fdd9ca
7
Makefile
7
Makefile
|
@ -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 $@
|
||||
|
|
Loading…
Reference in a new issue