update guix strap and readme

This commit is contained in:
Freya Murphy 2023-11-03 12:24:31 -04:00
parent 31b8c3c663
commit cb644bfd47
No known key found for this signature in database
GPG key ID: 988032A5638EE799
5 changed files with 28 additions and 35 deletions

View file

@ -1,29 +1,14 @@
# Guix Installation ### dotfiles
## Installing Guix my personal dot-files
### Instructions i usse GNU/Guix btw
- Create USB with Guix installation image ### instaliation
- Boot and create partitions using graphical installer
- Bail out right before installation begins, go to terminal if you wish to install my guix system
- Mount cow-store using herd start cow-store /mnt
- Download latest version of configuration using `curl -o main.tar.gz --insecure --follow https://g.tylerm.dev/tylerm/dotfiles/archive/main.tar.gz` and unpack using tar - get a bootable systemcrafters guix iso
- Authorize nonguix channel using `curl -o signkey.pub https://substitutes.nonguix.org/signing-key.pub and guix archive --authorize < signkey.pub` - boot into it
- Modify/add system config for system and initialize using `guix time-machine -C channels.scm -- system -L modules/ --substitute-urls='https://bordeaux.guix.gnu.org https://ci.guix.gnu.org https://substitutes.nonguix.org' init system.scm /mnt` - clone this repo `curl -o main.tar.gz --insecure --follow https://g.freya.cat/freya/dotfiles/archive/main.tar.gz`
- When installed, proceed - cd into guix-strap and run `./guix-setup`
- Reboot into system, assign root and tylerm user a password
- Setup system completely
- Clone guix-config to proper location
- Reconfigure system
- `sudo -E guix time-machine -C channels.scm -- system -L modules reconfigure system.scm` <---- may not be needed
- `guix pull`
- `hash guix`
- `sudo guix system -L modules reconfigure system.scm`
- Configure GUIX Home
- Install Nix Home Manager
- May need to sudo herd restart nix-daemon or reconfigure system to get nix working???
- `nix-channel --update`
- `nix-shell '<home-manager>' -A install`
- `home-manager switch`
- Everything should now be set up and ready to use :)

View file

@ -3,20 +3,16 @@
source ./guix-env source ./guix-env
source ./guix-log source ./guix-log
EVENT "Mounting /gnu/store to destination disk..." EVENT "Pulling guix channels"
herd start cow-store /mnt guix pull -C ../channels.scm
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" 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 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" EVENT "Installing User Environment"
USER=tylerm USER=freya
guix shell git -- git clone https://g.tylerm.dev/tylerm/dotfiles /mnt/home/$USER/.config/guix guix shell git -- git clone https://g.freya.cat/freya/dotfiles /mnt/home/$USER/.config/guix
cp ../$HOSTNAME.scm /mnt/home/$USER/.config/guix/$HOSTNAME.scm cp ../$HOSTNAME.scm /mnt/home/$USER/.config/guix/$HOSTNAME.scm
cp ./guix-setup-user /mnt/home/$USER/.zprofile cp ./guix-setup-user /mnt/home/$USER/.zprofile

View file

@ -43,7 +43,7 @@ cat << EOF | chroot /mnt
passwd passwd
$ROOT_PASSWORD $ROOT_PASSWORD
$ROOT_PASSWORD $ROOT_PASSWORD
passwd tylerm passwd freya
$USER_PASSWORD $USER_PASSWORD
$USER_PASSWORD $USER_PASSWORD
EOF EOF

11
guix-strap/guix-prepare Normal file
View file

@ -0,0 +1,11 @@
#!/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

View file

@ -44,6 +44,7 @@ welcome
./guix-partition ./guix-partition
./guix-crypt ./guix-crypt
./guix-configure ./guix-configure
./guix-prepare
./guix-install ./guix-install
cleanup cleanup