diff options
| author | Tyler Murphy <tylerm@tylerm.dev> | 2023-10-07 16:59:12 -0400 |
|---|---|---|
| committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-10-07 16:59:12 -0400 |
| commit | 0be7c27439b75a16cd340b4a72855a7cc6cec06a (patch) | |
| tree | 3ec923632137c223911a21ed169a1247d9051406 /guix-strap/guix-install | |
| parent | format btrfs, no YES on cryptsetup format needed (diff) | |
| download | dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.tar.gz dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.tar.bz2 dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.zip | |
guix strap done (hopefully)
Diffstat (limited to 'guix-strap/guix-install')
| -rwxr-xr-x | guix-strap/guix-install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/guix-strap/guix-install b/guix-strap/guix-install new file mode 100755 index 0000000..fbfb19a --- /dev/null +++ b/guix-strap/guix-install @@ -0,0 +1,25 @@ +#!/run/current-system/profile/bin/bash + +source ./guix-env +source ./guix-log + +EVENT "Mounting /gnu/store to destination disk..." +herd start cow-store /mnt + +EVENT "Installing non-guix signing keys for substitutes..." +curl -o /tmp/sign-key.pub https://substitutes.nonguix.org/signing-key.pub +guix archive --authorize < /tmp/sign-key.pub + +EVENT "Installing GNU Guix" +guix time-machine -C ../channels.scm -- system -L ../modules --substitute-urls='https://substitutes.nonguix.org https://bordeaux.guix.gnu.org https://ci.guix.gnu.org' init ../$HOSTNAME.scm /mnt + +EVENT "Installing User Environment" + +USER=tylerm +guix shell git -- git clone https://g.tylerm.dev/tylerm/dotfiles /mnt/home/$USER/.config/guix +cp ../$HOSTNAME.scm /mnt/home/$USER/.config/guix/$HOSTNAME.scm +cp ./guix-setup-user /mnt/home/$USER/.zprofile + +chown 1000:1000 -R /mnt/home/$USER + +EVENT "Successflly installed Guix root and user" |