<samueldr>
after a bit more than a year really working on this, I don't know whether I should be proud that there are 15 devices supported, or annoyed that there's only 15 devices supported
<samueldr>
telent's port is/was pretty much done I think though
<samueldr>
oh, and Ox4A6F's zte-axon7 port might have been too, just looked at the PR comments
LnL- has quit [Quit: exit 1]
LnL has joined #nixos-aarch64
LnL has joined #nixos-aarch64
LnL has quit [Changing host]
Acou_Bass has quit [Ping timeout: 256 seconds]
Acou_Bass has joined #nixos-aarch64
energizer has joined #nixos-aarch64
<clever>
energizer: which model of pi?
<energizer>
clever: cryptsetup open /dev/sda2 crypt; mount /dev/mapper/crypt /home/nixos/mnt/128gbsd; mount /dev/sda1 /home/nixos/mnt/128gbsd/fsroot/boot; cd /mnt/128gbsd;
<energizer>
4
<clever>
ah right, luks on a pi4
<energizer>
now i'm gonna mount --bind persist,home,nix, into the corresponding subdirs of fsroot
<clever>
and now if you just re-run `nixos-generate-config --root /home/nixos/mnt/128gbsd ; nixos-install --root /home/nixos/mnt/128gbsd` ?
<clever>
why bind mount?
<energizer>
maybe that's my problem, why --root 128gbsd instead of --root fsroot?
<clever>
why did you mount crypt to 128gbsd but then boot to 128gbsd/fsroot/boot ?
LnL has joined #nixos-aarch64
LnL has joined #nixos-aarch64
LnL has quit [Changing host]
<clever>
crypt should be at the $root, and boot should be at $root/boot
<energizer>
which root though, 128gbsd or 128gbsd/fsroot?
<clever>
your rootfs, must be mounted to $root, whatever you decide that should be
<clever>
why is /dev/mapper/crypt mounted one dir above fsroot?
<clever>
are you doing an erase-your-darlings setup?
<energizer>
ya
<clever>
ahhh, that explains the weirdness
<clever>
i'm thinking you probably want it more like this
<clever>
mount a tmpfs to $root
<energizer>
this is the setup that i use on my desktop and it works https://bpa.st/W7VA
<clever>
then mount crypt to $root/persist
<energizer>
i just dont remember how i did the install
<clever>
then bind-mount persist/nix and persist/home to $root/nix and $root/home
<clever>
and mount boot to $root/boot
<clever>
total of 5 mount commands
<clever>
then re-run nixos-generate-config --root $root
<energizer>
/persist isnt intended as the parent of /nix and /home, they're separate
<clever>
nixos-generate-config should (in theory) bake all of those mounts into hardware-configuration.nix
<clever>
and then it should just boot without any work
<clever>
but i have noticed that zfs->lvm->luks->nvme, it doesnt notice the luks, and wont try to open it on boot
<clever>
so i have to add that to the cfg manually
<energizer>
clever: fsroot doesn't exist when sda2 is encrypted
<clever>
$root should point to a directory that you made before starting
<clever>
and nothing should be mounted above $root
<energizer>
that'll be 128gbsd then
<energizer>
those /dev/sda2 ought be /dev/mapper/crypt
<clever>
oops, yeah
<clever>
gist updated
<energizer>
i'm starting to remember how this works. i dont want tmpfs root because of limited ram. so instead i used "/" = rootPartition // { options = [ "subvol=fsroot" ]; }; and that's the subvol that gets erased
<clever>
then just replace the tmpfs mount (line 3) with a subvol mount
<clever>
gist updated
<clever>
nixos-generate-config will generate the right config for you
Acou_Bass has quit [Ping timeout: 272 seconds]
<energizer>
suspecting i already had the right config tbh
<clever>
energizer: the bootconf.txt is an example config, the comment at the bottom explains all of the options
<clever>
energizer: the nix file, will embed that into an eeprom .img file (all versions are in the github shown in the comment)
<clever>
if you rename pieeprom.bin to pieeprom.upd, and put both the .upd and the .sig into the fat32 of the usb stick, it may update (if its new enough for self-update)
<clever>
then check `vcgencmd bootloader_version` and `vcgencmd bootloader_config` after a reboot, did they change?
<energizer>
ok i gotta take a break
<energizer>
thanks
LnL has joined #nixos-aarch64
LnL has quit [Ping timeout: 256 seconds]
LnL has joined #nixos-aarch64
LnL has joined #nixos-aarch64
LnL- has joined #nixos-aarch64
LnL has quit [Ping timeout: 264 seconds]
zupo has joined #nixos-aarch64
orivej has joined #nixos-aarch64
cole-h has quit [Ping timeout: 260 seconds]
orivej has quit [Ping timeout: 260 seconds]
justanotheruser has quit [Ping timeout: 260 seconds]
zupo has quit [Ping timeout: 272 seconds]
zupo has joined #nixos-aarch64
alp has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos-aarch64
zupo has joined #nixos-aarch64
alp has quit [Remote host closed the connection]
zupo has quit [Ping timeout: 256 seconds]
zupo has joined #nixos-aarch64
alpernebbi has joined #nixos-aarch64
dstzd_ has joined #nixos-aarch64
nix-build has joined #nixos-aarch64
{^_^} has quit [Remote host closed the connection]
dstzd has quit [Ping timeout: 260 seconds]
dstzd_ is now known as dstzd
alp has joined #nixos-aarch64
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos-aarch64
zupo has quit [Client Quit]
zupo has joined #nixos-aarch64
alpernebbi has quit [Remote host closed the connection]