This commit is contained in:
Daniel Ziltener 2023-12-11 16:56:04 +01:00
parent 4c4858f2a4
commit 3c253593d8
Signed by: zilti
GPG key ID: B38976E82C9DAE42
2 changed files with 21 additions and 0 deletions

View file

@ -19,6 +19,20 @@
guix system reconfigure ./config.scm --substitute-urls='https://ci.guix.gnu.org https://bordeaux.guix.gnu.org https://substitutes.nonguix.org'
#+end_src
* System Installation Script
This is to be run after setting up the partitions.
#+begin_src sh :tangle sysinst.sh
#!/bin/sh
herd start cow-store /mnt
mkdir -p ~/.config/guix
cp channels.scm ~/.config/guix/channels.scm
guix pull
sed -i 's|/etc/config.scm|/mnt/etc/config.scm|g' ./config.scm
guix system init ./config.scm /mnt
#+end_src
* Modules
#+NAME: module-list

7
sysinst.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh
herd start cow-store /mnt
mkdir -p ~/.config/guix
cp channels.scm ~/.config/guix/channels.scm
guix pull
sed -i 's|/etc/config.scm|/mnt/etc/config.scm|g' ./config.scm
guix system init ./config.scm /mnt