removed unecessary host var

This commit is contained in:
Tyler Kelley 2024-04-13 01:25:33 -05:00
parent c9c7ceb3ce
commit 7877d6c4d6
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,6 @@
outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }: outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }:
let let
system = "x86_64-linux"; system = "x86_64-linux";
host = "hyprnix";
inherit (import ./hosts/${host}/options.nix) username hostname; inherit (import ./hosts/${host}/options.nix) username hostname;
pkgs = import nixpkgs { pkgs = import nixpkgs {
@ -32,7 +31,7 @@
}; };
in { in {
nixosConfigurations = { nixosConfigurations = {
"${host}" = nixpkgs.lib.nixosSystem { "${hostname}" = nixpkgs.lib.nixosSystem {
specialArgs = { specialArgs = {
inherit system; inherit inputs; inherit system; inherit inputs;
inherit username; inherit hostname; inherit username; inherit hostname;

View File

@ -13,7 +13,7 @@ if command -v git &> /dev/null; then
else else
echo "Git is not installed. Please install Git and try again." echo "Git is not installed. Please install Git and try again."
echo "Example: nix-shell -p git" echo "Example: nix-shell -p git"
exit 1 exit
fi fi
echo "-----" echo "-----"
@ -56,7 +56,6 @@ cd zaneyos
mkdir hosts/$hostName mkdir hosts/$hostName
cp hosts/default/*.nix hosts/$hostName cp hosts/default/*.nix hosts/$hostName
git add . git add .
sed -i "/^\s*host[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./flake.nix
sed -i "/^\s*setHostname[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./hosts/$hostName/options.nix sed -i "/^\s*setHostname[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$hostName\"/" ./hosts/$hostName/options.nix
echo "-----" echo "-----"