diff --git a/Makefile b/Makefile index b4f814be..29f70ea3 100644 --- a/Makefile +++ b/Makefile @@ -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)