Starting config for rift.

This commit is contained in:
2025-09-02 19:37:07 -07:00
parent c89953bba0
commit 4d026cac96
7 changed files with 153 additions and 1 deletions

21
flash.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -e
if [[ ! $# -eq 2 ]]
then
echo "$0: <config> <ssh address>"
exit
fi
NIXOS_INSTALLER_VERSION=25.05
CONFIG=$1
HOST=$2
wget -c https://github.com/nix-community/nixos-images/releases/download/nixos-${NIXOS_INSTALLER_VERSION}/nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz
nix run github:nix-community/nixos-anywhere -- \
--flake .#${CONFIG} \
--generate-hardware-config nixos-generate-config ./hw/${CONFIG}/hardware-configuration.nix \
--kexec ./nixos-kexec-installer-noninteractive-x86_64-linux.tar.gz \
--target-host ${HOST}