This commit is contained in:
Daniel Ziltener 2023-12-12 09:33:21 +01:00
parent 363265436f
commit 68ecfc7c41
2 changed files with 11 additions and 6 deletions

View file

@ -59,7 +59,7 @@
;; [[file:config.org::*File System][File System:1]]
(define %local-filesystem
(call-with-input-file "/etc/config.scm"
(call-with-input-file "/mnt/mnt/mnt/etc/config.scm"
(lambda (port)
(read port)
(read port)
@ -73,8 +73,8 @@
;; [[file:config.org::*File System][File System:2]]
(define %local-swap
(call-with-input-file "/etc/config.scm"
#;(define %local-swap
(call-with-input-file "/mnt/mnt/mnt/etc/config.scm"
(lambda (port)
(read port)
(read port)
@ -109,7 +109,7 @@
'("/boot/efi"))
(keyboard-layout keyboard-layout)))
(file-systems %local-filesystem)
(swap-devices %local-swap)
#;(swap-devices %local-swap)
(users
(cons*
(user-account
@ -120,7 +120,7 @@
%base-user-accounts))
(packages
(append
(list emacs emacs-desktop-environment font-terminus git hwdata nss-certs readline swayfx)
(list emacs emacs-desktop-environment font-terminus git nss-certs readline)
%base-packages))
(services
(append

View file

@ -2,6 +2,11 @@
herd start cow-store /mnt
mkdir -p ~/.config/guix
cp channels.scm ~/.config/guix/channels.scm
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
guix system init ./config.scm /mnt --substitute-urls="https://ci.guix.gnu.org https://bordeaux.guix.gnu.org https://substitutes.nonguix.org"