diff options
-rw-r--r-- | README.md | 24 | ||||
-rw-r--r-- | SmallLaptop.scm | 29 | ||||
-rw-r--r-- | home-config/home-configuration.scm | 4 |
3 files changed, 53 insertions, 4 deletions
@@ -2,7 +2,27 @@ | |||
2 | 2 | ||
3 | ## Installing Guix | 3 | ## Installing Guix |
4 | 4 | ||
5 | ### Instructions | 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) | ||
6 | 26 | ||
7 | - Create USB with Guix installation image | 27 | - Create USB with Guix installation image |
8 | - Boot and create partitions using graphical installer | 28 | - Boot and create partitions using graphical installer |
@@ -10,7 +30,7 @@ | |||
10 | - Mount cow-store using herd start cow-store /mnt | 30 | - Mount cow-store using herd start cow-store /mnt |
11 | - 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 | 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 |
12 | - Authorize nonguix channel using `curl -o signkey.pub https://substitutes.nonguix.org/signing-key.pub and guix archive --authorize < signkey.pub` | 32 | - Authorize nonguix channel using `curl -o signkey.pub https://substitutes.nonguix.org/signing-key.pub and guix archive --authorize < signkey.pub` |
13 | - Modify/add system config for system and initialize using `env GUILE_LOAD_PATH='' GUILE_LOAD_COMPILED_PATH='' 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` | 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` |
14 | - When installed, proceed | 34 | - When installed, proceed |
15 | - Reboot into system, assign root and ryan user a password | 35 | - Reboot into system, assign root and ryan user a password |
16 | - Setup system completely | 36 | - Setup system completely |
diff --git a/SmallLaptop.scm b/SmallLaptop.scm new file mode 100644 index 0000000..d277afe --- /dev/null +++ b/SmallLaptop.scm | |||
@@ -0,0 +1,29 @@ | |||
1 | (use-modules (ryan-config base-system) | ||
2 | (ryan-bootloader uki) | ||
3 | (gnu)) | ||
4 | |||
5 | (operating-system | ||
6 | (inherit base-operating-system) | ||
7 | (host-name "SmallLaptop") | ||
8 | (mapped-devices (list (mapped-device | ||
9 | (source (uuid | ||
10 | "b22d6f2b-44ce-4b56-9833-dde593d19d75")) | ||
11 | (target "sysroot") | ||
12 | (type luks-device-mapping)))) | ||
13 | (file-systems (cons* (file-system | ||
14 | (mount-point "/") | ||
15 | (device "/dev/mapper/sysroot") | ||
16 | (type "ext4") | ||
17 | (dependencies mapped-devices)) | ||
18 | (file-system | ||
19 | (mount-point "/boot/efi") | ||
20 | (device (uuid "B70B-1F33" | ||
21 | 'fat32)) | ||
22 | (type "vfat")) %base-file-systems)) | ||
23 | (bootloader (bootloader-configuration | ||
24 | (bootloader uefi-uki-bootloader) | ||
25 | (targets (list "/boot/efi")) | ||
26 | (keyboard-layout (keyboard-layout "us")))) | ||
27 | (swap-devices | ||
28 | (list | ||
29 | (swap-space (target (uuid "3d4b8192-e86f-4579-9285-29f7cd11d136")))))) | ||
diff --git a/home-config/home-configuration.scm b/home-config/home-configuration.scm index df3a779..5740b26 100644 --- a/home-config/home-configuration.scm +++ b/home-config/home-configuration.scm | |||
@@ -183,13 +183,13 @@ | |||
183 | `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim")) | 183 | `((".local/share/nvim/site/autoload/plug.vim" ,(local-file "nvim/plugin-manager/plug.vim")) |
184 | (".ssh/config" ,(local-file "ssh/config")) | 184 | (".ssh/config" ,(local-file "ssh/config")) |
185 | (".icons" ,(local-file "icons" #:recursive? #t)) | 185 | (".icons" ,(local-file "icons" #:recursive? #t)) |
186 | (".mozilla/native-messaging-hosts/gpgmejson.json" ,(local-file "mailvelope/gpgmejson.json")) | 186 | ;(".mozilla/native-messaging-hosts/gpgmejson.json" ,(local-file "mailvelope/gpgmejson.json")) |
187 | (".local/share/mailvelope" ,(local-file "mailvelope" #:recursive? #t)) | 187 | (".local/share/mailvelope" ,(local-file "mailvelope" #:recursive? #t)) |
188 | (".mozilla/native-messaging-hosts/tridactyl.json" ,(local-file "tridactyl/tridactyl.json")) | 188 | (".mozilla/native-messaging-hosts/tridactyl.json" ,(local-file "tridactyl/tridactyl.json")) |
189 | (".local/share/tridactyl" ,(local-file "tridactyl" #:recursive? #t)) | 189 | (".local/share/tridactyl" ,(local-file "tridactyl" #:recursive? #t)) |
190 | ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol")) | 190 | ;(".gnupg/sshcontrol" ,(local-file "gnupg/sshcontrol")) |
191 | ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf")) | 191 | ;(".gnupg/gpg-agent.conf" ,(local-file "gnupg/gpg-agent.conf")) |
192 | (".gnupg/gpg.conf" ,(local-file "gnupg/gpg.conf")) | 192 | ;(".gnupg/gpg.conf" ,(local-file "gnupg/gpg.conf")) |
193 | (".local/share/fonts" ,(local-file "fonts" #:recursive? #t)) | 193 | (".local/share/fonts" ,(local-file "fonts" #:recursive? #t)) |
194 | (".gitconfig" ,(local-file "gitconfig")) | 194 | (".gitconfig" ,(local-file "gitconfig")) |
195 | (".docker/cli-plugins" ,(local-file "docker/cli-plugins" #:recursive? #t)) | 195 | (".docker/cli-plugins" ,(local-file "docker/cli-plugins" #:recursive? #t)) |