operating-systems: buer: Add installation scripts

main
Luis Guilherme Coelho 2024-11-04 19:13:29 -03:00
parent 82cc77b433
commit 22e043e4ca
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
6 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,3 @@
guix shell git -- git clone https://codeberg.org/anemofilia/radix
echo "Format your disk and mount the btrfs partition on /mnt."
echo "After that, run 02-create.sh"

View File

@ -0,0 +1,10 @@
cd /mnt
mkdir -p boot home root gnu/store gnu/persist var/log var/lib var/guix
for vol in home root boot gnu gnu/store gnu/persist var var/log var/lib var/guix; do
btrfs subvolume create @$vol
mount --bind @$vol $vol
done
cd @gnu/persist
mkdir -p etc/guix etc/ssh etc/wireguard

View File

@ -0,0 +1,3 @@
herd start cow-store /mnt
export GUILE_LOAD_PATH=/root/radix:/root/zero:/root/zero/home-environments:/root/zero:operating-systems:$GUILE_LOAD_PATH
guix system init /root/zero/operating-systems/buer.scm /mnt

View File

@ -0,0 +1,3 @@
cd /mnt
umount home root boot gnu/store gnu/persist var/log var/lib var/guix
rm -rf home root boot bin etc gnu mnt tmp var

View File

@ -0,0 +1 @@
guix shell dbus -- dbus-uuidgen > /mnt/@gnu/persist/etc/machine-id

View File

@ -0,0 +1,3 @@
chmod 700 /mnt/@root
chmod 644 /mnt/@gnu/persist/etc/machine-id
chmod 600 /mnt/@gnu/persist/etc/{wireguard,ssh,guix}