guix-config

Guix system and home config for XIII (librebooted T480)
git clone https://g1rls.strangled.net/guix-config.git
Log | Files | Refs | README

README.md (1657B)


      1 # xiii
      2 
      3 Guix System and Guix Home config for a ThinkPad T480 with coreboot, linux-libre and niri.
      4 
      5 ![screenshot](screenshot.webp)
      6 
      7 ## Files
      8 
      9 - `system.scm`: the operating system. LUKS2 root, nftables, mihomo, Yggdrasil, sshd.
     10 - `home.scm`: Guix Home. Packages, mcron jobs, dotfiles linked from `dots/`.
     11 - `theme.scm`: one palette for foot, mako, wob and niri.
     12 - `channels.scm`: channels for `guix pull`. `trusted-channels.scm` pins the commits a reconfigure runs from.
     13 - `dots/`: dotfiles and the `xiii-*` scripts.
     14 - `private.scm.age`: site-specific values, encrypted with age. `system.scm` loads the decrypted `private.scm`, which git ignores.
     15 
     16 ## Install
     17 
     18 1. Boot the Guix installer. Make an EFI partition and a LUKS2 partition holding ext4 labelled `xiii-root`.
     19 2. `git clone nostr://npub1mvxl7svz7tl368p4ryxwucppt46x882k08x02468ggvyge9uky6qqecjpf/relay.ngit.dev/guix-config ~/.config/guix`
     20 3. Decrypt `private.scm.age`, or write your own `private.scm` defining `%vps-ip` and `%vps-ygg`.
     21 4. Put your disk's LUKS and EFI UUIDs into `system.scm`.
     22 5. `sudo guix time-machine -C ~/.config/guix/trusted-channels.scm -- system reconfigure ~/.config/guix/system.scm`
     23 6. `guix home reconfigure ~/.config/guix/home.scm`
     24 
     25 Plain git can clone the HTTPS URL of any of the repo's GRASP servers instead of the `nostr://` one.
     26 
     27 ## Not in the repo
     28 
     29 - `/etc/mihomo`: the mihomo binary and its config. Without them the first reconfigure fails, so comment out `%mihomo` and the `http-proxy` line in `system.scm` until they are in place.
     30 - Keys: the Yggdrasil key, ssh keys, the tunnel key in `/etc/xiii-tun`.
     31 - `~/.local/bin/free-feed`, run by the mcron job in `home.scm`.