mirror of https://codeberg.org/anemofilia/zero
operating-systems: buer: Add installation scripts
parent
82cc77b433
commit
22e043e4ca
|
@ -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"
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
guix shell dbus -- dbus-uuidgen > /mnt/@gnu/persist/etc/machine-id
|
|
@ -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}
|
Loading…
Reference in New Issue