guixconfig/sysinst.sh
2023-12-12 09:48:38 +01:00

9 lines
349 B
Bash

#!/bin/sh
herd start cow-store /mnt
mkdir -p /mnt/etc/guix/
cp channels.scm /mnt/etc/guix/
mkdir -p /etc/guix
cp channels.scm /etc/guix
guix pull
sed -i 's|/etc/config.scm|/mnt/etc/config.scm|g' ./config.scm
guix system init ./config.scm /mnt --substitute-urls="https://ci.guix.gnu.org https://bordeaux.guix.gnu.org https://substitutes.nonguix.org"