From 7877d6c4d6cef67e3b46767fb647fbd21de062b1 Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Sat, 13 Apr 2024 01:25:33 -0500 Subject: [PATCH] removed unecessary host var --- flake.nix | 3 +-- install-zaneyos.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index eec1143..0802baa 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,6 @@ outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }: let system = "x86_64-linux"; - host = "hyprnix"; inherit (import ./hosts/${host}/options.nix) username hostname; pkgs = import nixpkgs { @@ -32,7 +31,7 @@ }; in { nixosConfigurations = { - "${host}" = nixpkgs.lib.nixosSystem { + "${hostname}" = nixpkgs.lib.nixosSystem { specialArgs = { inherit system; inherit inputs; inherit username; inherit hostname; diff --git a/install-zaneyos.sh b/install-zaneyos.sh index 7151000..72ee8b7 100755 --- a/install-zaneyos.sh +++ b/install-zaneyos.sh @@ -13,7 +13,7 @@ if command -v git &> /dev/null; then else echo "Git is not installed. Please install Git and try again." echo "Example: nix-shell -p git" - exit 1 + exit fi echo "-----" @@ -56,7 +56,6 @@ cd zaneyos mkdir hosts/$hostName cp hosts/default/*.nix hosts/$hostName git add . -sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix sed -i "/^\s*setHostname[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./hosts/$hostName/options.nix echo "-----"