| 23 Aug 2023 |
artemis | naturally | 11:41:15 |
artemis | pkgsCross.raspberryPi does indeed seem to be downloading an armv6 compiler. cool | 11:41:50 |
artemis | why is that named raspberryPi instead of something more generic | 11:42:18 |
@linus:schreibt.jetzt | historical reasons, mostly | 11:47:43 |
@linus:schreibt.jetzt | there's a raspberrypi "platform" in nixpkgs which also defines things like a kernel defconfig | 11:47:53 |
@linus:schreibt.jetzt | there are plans to make pkgsCross more consistent, afaik | 11:48:22 |
artemis | tangentially to this, can i nix-copy-closure (or whatever i actually want if its not this?) to just like, a mounted partition | 11:53:33 |
@linus:schreibt.jetzt | nix copy --to /foo will copy things to /foo/nix/store | 11:54:00 |
artemis | sweet ok | 11:54:06 |
@linus:schreibt.jetzt | using chroot stuff | 11:54:15 |
@linus:schreibt.jetzt | if you want to boot from it, make sure to do the copying as root | 11:54:27 |
@linus:schreibt.jetzt | otherwise the ownership will be on your user and things will be unhappy | 11:54:44 |
artemis | is that the correct way to update a NixOS partition too? Like will that "activate" the new config or what have you | 11:54:55 |
artemis | or do i need to do something else on top to do that | 11:55:04 |
@linus:schreibt.jetzt | with cross it's a bit tricky | 11:55:33 |
artemis | right now im updating a crossbuilt pi2 i have but im doing that over the network with deploy-rs | 11:55:36 |
artemis | and deploy-rs handles all the specific nix stuff for me so i only sort of know what its actually doing | 11:56:05 |
artemis | but it like copies over my crossbuilt packages, sets up a new boot environment with an entry in the boot menu and everything | 11:56:25 |
@linus:schreibt.jetzt | because the tools that generate bootloader config and stuff are only compiled for the target arch, so you can't properly switch to the config from a different machine | 11:56:25 |
artemis | * but it like copies over my crossbuilt packages, sets up a new boot environment with an entry in the boot menu and everything, and activates it | 11:56:29 |
@linus:schreibt.jetzt | all nix copy does is copy things into the store | 11:56:41 |
@linus:schreibt.jetzt | no activation or anything | 11:56:49 |