From 1ba51897b621c9c9f231a298f245b0466e3c1012 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 28 Nov 2023 10:32:15 +0100 Subject: [PATCH] Generate hardware config on installation --- scripts/NixOS/OS/setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/NixOS/OS/setup.sh b/scripts/NixOS/OS/setup.sh index c9c7fccb..ed0f6208 100755 --- a/scripts/NixOS/OS/setup.sh +++ b/scripts/NixOS/OS/setup.sh @@ -16,6 +16,8 @@ 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; popd > /dev/null;