Install NixOS as a flake
This commit is contained in:
parent
2904b481f0
commit
4afac04cbc
1 changed files with 1 additions and 3 deletions
|
@ -16,9 +16,7 @@ BOOT_MOUNTPOINT="/boot/efi" \
|
||||||
configRoot="$NIXOS_MOUNT_ROOT/etc/nixos";
|
configRoot="$NIXOS_MOUNT_ROOT/etc/nixos";
|
||||||
mkdir -p "$configRoot";
|
mkdir -p "$configRoot";
|
||||||
git clone "$NIXOS_CONFIG_REPOSITORY" "$configRoot";
|
git clone "$NIXOS_CONFIG_REPOSITORY" "$configRoot";
|
||||||
hostname "$NIXOS_HOSTNAME";
|
|
||||||
cd "$configRoot";
|
cd "$configRoot";
|
||||||
nixos-generate-config --root "$NIXOS_MOUNT_ROOT" --show-hardware-config > "$configRoot/hardware-configuration.nix";
|
nixos-install --flake ".#$NIXOS_HOSTNAME";
|
||||||
nixos-install;
|
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
|
|
Loading…
Reference in a new issue