1
0
forked from extern/zaneyos

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, ... }:
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;

View File

@ -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 "-----"