From 8ed8fb15d857d1248a711fa96ee81355b8c807dd Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 28 Apr 2023 11:50:11 +0100 Subject: [PATCH] Rename nixos config files to use just hostname --- Makefile | 7 ++++--- nixos/{H0615-elitherl.nix => H0615.nix} | 0 nixos/{J0162-elitherl.nix => J0162.nix} | 0 nixos/{Vanguard-xenia.nix => Vanguard.nix} | 0 4 files changed, 4 insertions(+), 3 deletions(-) rename nixos/{H0615-elitherl.nix => H0615.nix} (100%) rename nixos/{J0162-elitherl.nix => J0162.nix} (100%) rename nixos/{Vanguard-xenia.nix => Vanguard.nix} (100%) diff --git a/Makefile b/Makefile index 7901026c..b4f814be 100644 --- a/Makefile +++ b/Makefile @@ -11,14 +11,15 @@ SSH_TARGETS := $(SSH_ITEMS:ssh/%=$(SSH_DIR)/%) .PHONY: default all clean link home nixos install -default: install home +default: install -all: default install home +all: nixos clean: rm $(SSH_DIR)/config.d rm $(HOME)/.inputrc rm -rf $(HOME)/.local/share/nvim + sudo rm /etc/nixos/$(HOSTNAME).nix $(CONFIG_DIR) $(SSH_DIR) $(CONFIG_DIR)/home-manager: mkdir -p $@ @@ -40,7 +41,7 @@ $(CONFIG_DIR)/home-manager/home.nix: $(CONFIG_DIR)/home-manager nixos: /etc/nixos/$(HOSTNAME)-$(USER).nix -/etc/nixos/$(HOSTNAME)-$(USER).nix: /nix +/etc/nixos/$(HOSTNAME).nix: /nix [ -f $(NIXOS_CONFIG) ] || touch $(NIXOS_CONFIG) sudo ln -s $(NIXOS_CONFIG) $@ diff --git a/nixos/H0615-elitherl.nix b/nixos/H0615.nix similarity index 100% rename from nixos/H0615-elitherl.nix rename to nixos/H0615.nix diff --git a/nixos/J0162-elitherl.nix b/nixos/J0162.nix similarity index 100% rename from nixos/J0162-elitherl.nix rename to nixos/J0162.nix diff --git a/nixos/Vanguard-xenia.nix b/nixos/Vanguard.nix similarity index 100% rename from nixos/Vanguard-xenia.nix rename to nixos/Vanguard.nix