Fix Makefile file type

This commit is contained in:
Evie Litherland-Smith 2023-04-29 12:35:56 +01:00
parent 836863040c
commit e3f6035b75

View file

@ -1,5 +1,5 @@
$(eval HOSTNAME=$(shell hostname))
NIXOS_CONFIG := $(PWD)/nixos/$(HOSTNAME)-$(USER).nix
NIXOS_CONFIG := $(PWD)/nixos/$(HOSTNAME).nix
HOMEMANAGER_CONFIG := $(PWD)/home/$(HOSTNAME)-$(USER).nix
CONFIG_DIR := $(if $(XDG_CONFIG_HOME), $(XDG_CONFIG_HOME), $(HOME)/.config)
SSH_DIR := $(HOME)/.ssh
@ -39,7 +39,7 @@ home: $(CONFIG_DIR)/home-manager/home.nix
$(CONFIG_DIR)/home-manager/home.nix: $(CONFIG_DIR)/home-manager
ln -s $(HOMEMANAGER_CONFIG) $@
nixos: /etc/nixos/$(HOSTNAME)-$(USER).nix
nixos: /etc/nixos/$(HOSTNAME).nix
/etc/nixos/$(HOSTNAME).nix: /nix
[ -f $(NIXOS_CONFIG) ] || touch $(NIXOS_CONFIG)