From 3c253593d8d439dbb74e948dabc10636082b88dc Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Mon, 11 Dec 2023 16:56:04 +0100 Subject: [PATCH] . --- config.org | 14 ++++++++++++++ sysinst.sh | 7 +++++++ 2 files changed, 21 insertions(+) create mode 100644 sysinst.sh diff --git a/config.org b/config.org index 4a92e3d..e0794e5 100644 --- a/config.org +++ b/config.org @@ -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 diff --git a/sysinst.sh b/sysinst.sh new file mode 100644 index 0000000..4a5b7ca --- /dev/null +++ b/sysinst.sh @@ -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