Add experimental installer script
Some checks failed
ci/woodpecker/push/ci Pipeline failed

This commit is contained in:
Daniel Lundin 2024-10-21 18:44:47 +02:00
parent 8c9fcd921d
commit 3f347427ed
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
2 changed files with 14 additions and 2 deletions

View file

@ -98,11 +98,12 @@
runtimeInputs = [ pkgs.qemu_kvm ];
# -snapshot \
text = ''
set -ex
qemu-system-x86_64 \
-smp 4 -m 2048 -machine q35,accel=kvm \
-smp 4 -m 4096 -machine q35,accel=kvm \
-bios ${pkgs.OVMF.fd}/FV/OVMF.fd \
-snapshot \
-display none \
-serial stdio "$@"
'';

View file

@ -9,10 +9,21 @@ let
systemd-sysupdate --verify=no
systemd-sysupdate --verify=no update --reboot
'';
patos-install = pkgs.writeShellApplication {
name = "patos-install";
text = ''
set -xeuo pipefail
curl -s https://images.dl.patagia.dev/patos/patos_0.0.1.raw.zst |
zstdcat |
dd of=/dev/sdb status=progress bs=4M
'';
};
in
{
environment.systemPackages = [
# pkgs.ncdu
patos-install
script
];
}