!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

342 Members
107 Servers

Load older messages


SenderMessageTime
23 Aug 2023
@linus:schreibt.jetztLinux Hackermanthere are plans to make pkgsCross more consistent, afaik11:48:22
@artemis:arty.chatartemistangentially to this, can i nix-copy-closure (or whatever i actually want if its not this?) to just like, a mounted partition11:53:33
@linus:schreibt.jetztLinux Hackerman nix copy --to /foo will copy things to /foo/nix/store 11:54:00
@artemis:arty.chatartemissweet ok11:54:06
@linus:schreibt.jetztLinux Hackermanusing chroot stuff11:54:15
@linus:schreibt.jetztLinux Hackermanif you want to boot from it, make sure to do the copying as root11:54:27
@linus:schreibt.jetztLinux Hackermanotherwise the ownership will be on your user and things will be unhappy11:54:44
@artemis:arty.chatartemisis that the correct way to update a NixOS partition too? Like will that "activate" the new config or what have you11:54:55
@artemis:arty.chatartemisor do i need to do something else on top to do that11:55:04
@linus:schreibt.jetztLinux Hackermanwith cross it's a bit tricky11:55:33
@artemis:arty.chatartemisright now im updating a crossbuilt pi2 i have but im doing that over the network with deploy-rs11:55:36
@artemis:arty.chatartemisand deploy-rs handles all the specific nix stuff for me so i only sort of know what its actually doing11:56:05
@artemis:arty.chatartemisbut it like copies over my crossbuilt packages, sets up a new boot environment with an entry in the boot menu and everything11:56:25
@linus:schreibt.jetztLinux Hackermanbecause 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 machine11:56:25
@artemis:arty.chatartemis* 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 it11:56:29
@linus:schreibt.jetztLinux Hackerman all nix copy does is copy things into the store 11:56:41
@linus:schreibt.jetztLinux Hackermanno activation or anything11:56:49
@artemis:arty.chatartemiseh surely qemu-user is enough to handle that11:56:50
@linus:schreibt.jetztLinux Hackermanprobably, but you'll need to copy qemu-user in for it to work in the chroot too11:57:13
@artemis:arty.chatartemisright11:57:21
@linus:schreibt.jetztLinux Hackerman if you're using qemu-user, nixos-install might be what you want, with the --system param pointing to the toplevel, and probably --no-root-passwd and --no-channel-copy too 11:57:42
@artemis:arty.chatartemisis that a command i should be running from my host or inside the chroot11:58:16
@linus:schreibt.jetztLinux Hackermanfrom the host11:58:20
@linus:schreibt.jetztLinux Hackermannixos-install copies the system in and does all the bits and pieces needed for it to boot11:58:58
@artemis:arty.chatartemiswhere does it copy the system from?11:59:12
@linus:schreibt.jetztLinux Hackermanthe "normal" store11:59:23
@artemis:arty.chatartemisoh right, ok11:59:36
@linus:schreibt.jetztLinux Hackermanthough I think it's happy to not do any copying if the system is already in the target store11:59:40
@linus:schreibt.jetztLinux Hackermanthis is all not ideal, and I have some thoughts about what a future replacement for nixos-rebuild and nixos-install should look like, as do others https://github.com/NixOS/nixpkgs/issues/5418812:02:30
@linus:schreibt.jetztLinux Hackerman(just as a disclaimer that this is how it currently is, but don't actually think it's cool and great :D )12:02:50

Show newer messages


Back to Room ListRoom Version: 6