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]] ;; [[file:config.org::*File System][File System:1]]
(define %local-filesystem (define %local-filesystem
(call-with-input-file "/etc/config.scm" (call-with-input-file "/mnt/mnt/mnt/etc/config.scm"
(lambda (port) (lambda (port)
(read port) (read port)
(read port) (read port)
@ -73,8 +73,8 @@
;; [[file:config.org::*File System][File System:2]] ;; [[file:config.org::*File System][File System:2]]
(define %local-swap #;(define %local-swap
(call-with-input-file "/etc/config.scm" (call-with-input-file "/mnt/mnt/mnt/etc/config.scm"
(lambda (port) (lambda (port)
(read port) (read port)
(read port) (read port)
@ -109,7 +109,7 @@
'("/boot/efi")) '("/boot/efi"))
(keyboard-layout keyboard-layout))) (keyboard-layout keyboard-layout)))
(file-systems %local-filesystem) (file-systems %local-filesystem)
(swap-devices %local-swap) #;(swap-devices %local-swap)
(users (users
(cons* (cons*
(user-account (user-account
@ -120,7 +120,7 @@
%base-user-accounts)) %base-user-accounts))
(packages (packages
(append (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)) %base-packages))
(services (services
(append (append

View file

@ -2,6 +2,11 @@
herd start cow-store /mnt herd start cow-store /mnt
mkdir -p ~/.config/guix mkdir -p ~/.config/guix
cp channels.scm ~/.config/guix/channels.scm 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 guix pull
sed -i 's|/etc/config.scm|/mnt/etc/config.scm|g' ./config.scm 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"