Fix Makefile file type
This commit is contained in:
parent
836863040c
commit
e3f6035b75
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
||||||
$(eval HOSTNAME=$(shell hostname))
|
$(eval HOSTNAME=$(shell hostname))
|
||||||
NIXOS_CONFIG := $(PWD)/nixos/$(HOSTNAME)-$(USER).nix
|
NIXOS_CONFIG := $(PWD)/nixos/$(HOSTNAME).nix
|
||||||
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)
|
||||||
SSH_DIR := $(HOME)/.ssh
|
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
|
$(CONFIG_DIR)/home-manager/home.nix: $(CONFIG_DIR)/home-manager
|
||||||
ln -s $(HOMEMANAGER_CONFIG) $@
|
ln -s $(HOMEMANAGER_CONFIG) $@
|
||||||
|
|
||||||
nixos: /etc/nixos/$(HOSTNAME)-$(USER).nix
|
nixos: /etc/nixos/$(HOSTNAME).nix
|
||||||
|
|
||||||
/etc/nixos/$(HOSTNAME).nix: /nix
|
/etc/nixos/$(HOSTNAME).nix: /nix
|
||||||
[ -f $(NIXOS_CONFIG) ] || touch $(NIXOS_CONFIG)
|
[ -f $(NIXOS_CONFIG) ] || touch $(NIXOS_CONFIG)
|
||||||
|
|
Loading…
Reference in a new issue