Add hyprland repo to Makefile

This commit is contained in:
Evie Litherland-Smith 2023-05-24 09:17:43 +01:00
parent fa6f1ce7db
commit 5dd04cc1a9

View file

@ -1,12 +1,13 @@
$(eval HOSTNAME=$(shell hostname)) $(eval HOSTNAME=$(shell hostname))
NIXOS_REPO := https://git.xenia.me.uk/xenia/nixos.git NIXOS_REPO := https://git.xenia.me.uk/xenia/nixos.git
NVIM_REPO := https://git.xenia.me.uk/xenia/nvim.git NVIM_REPO := https://git.xenia.me.uk/xenia/nvim.git
HYPR_REPO := https://git.xenia.me.uk/xenia/hyprland.git
HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)/$(USER).nix HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)/$(USER).nix
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config) CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
BIN_DIR := $(HOME)/.local/bin BIN_DIR := $(HOME)/.local/bin
HOMEMANAGER_CONFIG_DIR := $(CONFIG_DIR)/home-manager HOMEMANAGER_CONFIG_DIR := $(CONFIG_DIR)/home-manager
.PHONY: default all clean nixos home nvim .PHONY: default all clean nixos home nvim hypr
default: default:
[ -e /etc/nixos/ ] && make nixos || make home [ -e /etc/nixos/ ] && make nixos || make home
@ -16,12 +17,14 @@ all: default nvim
clean: clean:
[ -e $(HOMEMANAGER_CONFIG_DIR) ] && rm -rf $(HOMEMANAGER_CONFIG_DIR) [ -e $(HOMEMANAGER_CONFIG_DIR) ] && rm -rf $(HOMEMANAGER_CONFIG_DIR)
nixos: /etc/nixos/config nixos: /etc/nixos/config hypr
home: $(HOMEMANAGER_CONFIG_DIR)/home.nix home: $(HOMEMANAGER_CONFIG_DIR)/home.nix
nvim: $(CONFIG_DIR)/nvim nvim: $(CONFIG_DIR)/nvim
hypr: $(CONFIG_DIR)/hypr
/nix: /nix:
command -v nix > /dev/null || echo "Install nix package manager before continuing"; exit 1 command -v nix > /dev/null || echo "Install nix package manager before continuing"; exit 1
@ -37,3 +40,6 @@ $(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR) $(BIN_DIR):
$(CONFIG_DIR)/nvim: $(CONFIG_DIR) $(CONFIG_DIR)/nvim: $(CONFIG_DIR)
git clone $(NVIM_REPO) $@ git clone $(NVIM_REPO) $@
$(CONFIG_DIR)/hypr: $(CONFIG_DIR)
git clone $(HYPR_REPO) $@