diff --git a/scripts/NixOS/OS/setup.sh b/scripts/NixOS/OS/setup.sh index 33f53f74d..9f5452af2 100755 --- a/scripts/NixOS/OS/setup.sh +++ b/scripts/NixOS/OS/setup.sh @@ -16,9 +16,7 @@ BOOT_MOUNTPOINT="/boot/efi" \ configRoot="$NIXOS_MOUNT_ROOT/etc/nixos"; mkdir -p "$configRoot"; git clone "$NIXOS_CONFIG_REPOSITORY" "$configRoot"; -hostname "$NIXOS_HOSTNAME"; cd "$configRoot"; -nixos-generate-config --root "$NIXOS_MOUNT_ROOT" --show-hardware-config > "$configRoot/hardware-configuration.nix"; -nixos-install; +nixos-install --flake ".#$NIXOS_HOSTNAME"; popd > /dev/null;