Remove neovim as submodule

This commit is contained in:
Evie Litherland-Smith 2023-06-16 14:33:04 +01:00
parent 6cbc00f9ec
commit 384d2bfc58
3 changed files with 2 additions and 13 deletions

4
.gitmodules vendored
View file

@ -1,4 +0,0 @@
[submodule "nvim"]
path = nvim
url = https://git.xenia.me.uk/xenia/nvim.git
branch = main

View file

@ -2,18 +2,16 @@ $(eval HOSTNAME=$(shell hostname))
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
SUBMODULES := $(CONFIG_DIR)/nvim
.PHONY: default clean nixos home /etc/nixos/config
default: $(SUBMODULES)
default:
command -v nix > /dev/null || exit 1
[ -e /etc/nixos/ ] && make nixos || make home
bat cache --build
clean:
-[ -e /etc/nixos ] && sudo rm /etc/nixos/config || rm -rf $(HOMEMANAGER_CONFIG_DIR)
-rm $(SUBMODULES)
[ -e /etc/nixos ] && sudo rm /etc/nixos/config || rm -rf $(HOMEMANAGER_CONFIG_DIR)
nixos: /etc/nixos/config
sudo nixos-rebuild switch
@ -32,7 +30,3 @@ $(HOMEMANAGER_CONFIG_DIR)/home.nix: $(HOMEMANAGER_CONFIG) $(HOMEMANAGER_CONFIG_D
$(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR):
mkdir -p $@
$(SUBMODULES): $(CONFIG_DIR)/%: %
$(SUBMODULES):
-ln -s $$(readlink -f $?) $(CONFIG_DIR)/

1
nvim

@ -1 +0,0 @@
Subproject commit 8dd36f4d456162dcbec743232ae729a63eb231bc