hydrogen: init (#20)

Reviewed-on: https://codeberg.org/leana8959/.files/pulls/20
Co-authored-by: Léana 江 <leana.jiang+git@icloud.com>
Co-committed-by: Léana 江 <leana.jiang+git@icloud.com>
This commit is contained in:
Primrose 2025-11-02 05:12:02 +01:00 committed by Léana
parent a1024668db
commit 006798d917
31 changed files with 481 additions and 141 deletions

View file

@ -36,6 +36,23 @@ This repo is managed with Nix + GNU stow
# profit
```
## Installation for Raspberry Pi
Raspberry Pi uses the same configuration as the installer.
The `(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")` allows this.
- Build the image `nixosConfigurations.<name>.config.system.build.sdImage`.
Disable stuff like Lix to build this.
You might want to use raw password once so you don't have agenix decryption
problem while trying to have wpa_supplicant have the right passwords.
- Burn the image to the sd card.
```bash
zstdcat result/sd-image/nixos-image-sd-card-<hash>-aarch64-linux.img.zst |
doas dd of=/dev/sdb status=progress
```
- profit
# Pitfalls
## `users.mutableUsers`
NEVER set this to true without declaratively setting the passwords.