README.md

f2efb2542f7cd37d106e283701912d55c061bb1d · 2.5 KB · 49 lines raw

1 # Guix Installation
2
3 ## Installing Guix
4
5 ### New Instructions
6
7 - Boot from Bootable media
8 - Setup network and partitions with graphical installer
9 - bail out before installation, go to terminal
10 - mount cow-store using `herd start cow-store /mnt`
11 - download latest personal config
12 - add authorization keys
13 - use guix time-machine with `env GUILE_LOAD_PATH='' GUILD_LOAD_COMPILED_PATH='' ...` to init system
14 - place copy of config in /mnt to copy over later. MAKE SURE TO INCLUDE .git FOLDER!!
15 - reboot into new system
16 - assign root and ryan pw
17 - login to ryan
18 - place config into ~/.config/guix
19 - run `guix pull -C ~/.config/guix/channels.scm`
20 - run `sudo -E guix system -L ~/.config/guix/modules reconfigure ...`
21 - run `guix home -L ~/.config/guix/modules reconfigure ...`
22 - run `nix run --no-write-lock-file github:nix-community/home-manager/ -- --flake ".#$USER" switch`
23 - you may have a system now
24
25 ### Instructions (old, for reference)
26
27 - Create USB with Guix installation image
28 - Boot and create partitions using graphical installer
29 - Bail out right before installation begins, go to terminal
30 - Mount cow-store using herd start cow-store /mnt
31 - Download latest version of configuration using `curl -o main.tar.gz --insecure --follow https://git.ryanserver.home.arpa/ryan77627/guix-config/archive/main.tar.gz` and unpack using tar
32 - Authorize nonguix channel using `curl -o signkey.pub https://substitutes.nonguix.org/signing-key.pub and guix archive --authorize < signkey.pub`
33 - 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`
34 - When installed, proceed
35 - Reboot into system, assign root and ryan user a password
36 - Setup system completely
37 - Clone guix-config to proper location
38 - Reconfigure system
39 - `sudo -E guix time-machine -C channels.scm -- system -L modules reconfigure system.scm` <---- may not be needed
40 - `guix pull`
41 - `hash guix`
42 - `sudo guix system -L modules reconfigure system.scm`
43 - Configure GUIX Home
44 - Install Nix Home Manager
45 - May need to sudo herd restart nix-daemon or reconfigure system to get nix working???
46 - `nix-channel --update`
47 - `nix-shell '<home-manager>' -A install`
48 - `home-manager switch`
49 - Everything should now be set up and ready to use :)