dotfiles-guix/guix-strap/guix-install

22 lines
696 B
Text
Raw Normal View History

2023-10-07 20:59:12 +00:00
#!/run/current-system/profile/bin/bash
source ./guix-env
source ./guix-log
2023-11-03 16:24:31 +00:00
EVENT "Pulling guix channels"
guix pull -C ../channels.scm
2023-10-07 20:59:12 +00:00
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"
2023-11-03 16:24:31 +00:00
USER=freya
guix shell git -- git clone https://g.freya.cat/freya/dotfiles /mnt/home/$USER/.config/guix
2023-10-07 20:59:12 +00:00
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"