From 5dd04cc1a972d5ef6b20942c42e1a080767879f3 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 24 May 2023 09:17:43 +0100 Subject: [PATCH] Add hyprland repo to Makefile --- Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 36244d76..4bf4c4a7 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,13 @@ $(eval HOSTNAME=$(shell hostname)) NIXOS_REPO := https://git.xenia.me.uk/xenia/nixos.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 CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config) BIN_DIR := $(HOME)/.local/bin HOMEMANAGER_CONFIG_DIR := $(CONFIG_DIR)/home-manager -.PHONY: default all clean nixos home nvim +.PHONY: default all clean nixos home nvim hypr default: [ -e /etc/nixos/ ] && make nixos || make home @@ -16,12 +17,14 @@ all: default nvim clean: [ -e $(HOMEMANAGER_CONFIG_DIR) ] && rm -rf $(HOMEMANAGER_CONFIG_DIR) -nixos: /etc/nixos/config +nixos: /etc/nixos/config hypr home: $(HOMEMANAGER_CONFIG_DIR)/home.nix nvim: $(CONFIG_DIR)/nvim +hypr: $(CONFIG_DIR)/hypr + /nix: 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) git clone $(NVIM_REPO) $@ + +$(CONFIG_DIR)/hypr: $(CONFIG_DIR) + git clone $(HYPR_REPO) $@