From 8082969258e162829f59f7e72ac5ee9c7a9f8111 Mon Sep 17 00:00:00 2001 From: Matthew Ess Date: Wed, 5 May 2021 18:55:20 -0400 Subject: [PATCH] Revert --- install.sh | 16 +++++----------- machines/pine/configuration.nix | 1 - 2 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 machines/pine/configuration.nix diff --git a/install.sh b/install.sh index f640e53..bbca43e 100755 --- a/install.sh +++ b/install.sh @@ -1,22 +1,16 @@ #!/usr/bin/env bash -dest=$1 -machine=$HOSTNAME - -if [[ -z "$dest" ]]; then - dest="/etc/nixos/configuration.nix" -fi +machine=$1 if [[ -z "$machine" ]]; then - machine=default-name + machine=$(hostname) fi -if [[ ! -d "machines/$machine" || ! -f "machines/$machine/configuration.nix" ]]; then +if [[ ! -d "machines/$machine" ]]; then echo "$machine is not a known machine" - echo "Run as \`env HOSTNAME= ./install.sh\` to override." exit else - echo "Linking ./machines/$machine/configuration.nix to $dest" + echo "Linking ./machines/$machine/configuration.nix to /etc/nixos/configuration.nix" fi -sudo ln -sf $PWD/machines/$machine/configuration.nix $dest +sudo ln -sf $PWD/machines/$machine/configuration.nix /etc/nixos/configuration.nix diff --git a/machines/pine/configuration.nix b/machines/pine/configuration.nix deleted file mode 100644 index 1333ed7..0000000 --- a/machines/pine/configuration.nix +++ /dev/null @@ -1 +0,0 @@ -TODO