From 4afac04cbc12856df094553fd48c1b8fea8a7a91 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 2 Dec 2023 01:26:41 +0100 Subject: [PATCH] Install NixOS as a flake --- scripts/NixOS/OS/setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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;