Generate hardware config on installation
This commit is contained in:
parent
b1cdf65e5a
commit
659b7e203f
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue