diff --git a/flake.nix b/flake.nix index 63d8b2c..5629808 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,7 @@ forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system}); overlays = import ./overlays { inherit inputs; }; nixosConfigurations = { - unkown = nixpkgs.lib.nixosSystem { + ${hostname} = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs user hostname; }; modules = [ ./hosts/${hostname} ]; }; diff --git a/install.sh b/install.sh index 8f01748..9e66ff8 100755 --- a/install.sh +++ b/install.sh @@ -175,7 +175,7 @@ sed -i "s/common.services.vfio.enable = .*/common.services.vfio.enable = $vfio_r echo -e "$GREEN Configuration has been updated with your preferences $ENDCOLOR" sleep 2 - sudo nixos-rebuild boot --flake .#unkown + sudo nixos-rebuild boot --flake .#${new_hostname} echo -e "$GREEN Reboot after completion your initial password is 4321 $ENDCOLOR"