| 23 Aug 2023 |
Linux Hackerman | all nix copy does is copy things into the store | 11:56:41 |
Linux Hackerman | no activation or anything | 11:56:49 |
artemis | eh surely qemu-user is enough to handle that | 11:56:50 |
Linux Hackerman | probably, but you'll need to copy qemu-user in for it to work in the chroot too | 11:57:13 |
artemis | right | 11:57:21 |
Linux 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 | is that a command i should be running from my host or inside the chroot | 11:58:16 |
Linux Hackerman | from the host | 11:58:20 |
Linux Hackerman | nixos-install copies the system in and does all the bits and pieces needed for it to boot | 11:58:58 |
artemis | where does it copy the system from? | 11:59:12 |
Linux Hackerman | the "normal" store | 11:59:23 |
artemis | oh right, ok | 11:59:36 |
Linux Hackerman | though I think it's happy to not do any copying if the system is already in the target store | 11:59:40 |
Linux Hackerman | this 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/54188 | 12:02:30 |
Linux 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 |
artemis | _nods_ | 12:03:27 |
artemis | can you point me at where the source and/or docs for the nixos-install command is? | 12:03:50 |
artemis | i cant seem to view help on my machine | 12:03:57 |
Linux Hackerman | is it a nixos machine? | 12:04:08 |
artemis | no | 12:04:11 |
Linux Hackerman | aah ok | 12:04:13 |
artemis | ```
[nix-shell:~]$ nixos-install -h
/nix/store/05fq6sq2jwhkqiqh0i4bfcrfdh07c2l5-nixos-install-tools-23.11pre517312.9d757ec49866/bin/nixos-install: unknown option `-h'
[nix-shell:~]$ nixos-install --help
No manual entry for nixos-install
``` | 12:04:22 |
Linux Hackerman | heh | 12:04:28 |
artemis | yeah this is just me nix-shelling into it | 12:04:35 |
Linux Hackerman | weird, nix-shell usually provides manpages... | 12:04:44 |
artemis | i dont see it adding anything to my MANPATH so i guess it makes sense | 12:05:51 |
artemis | the only nix thing i have on MANPATH is $HOME/.nix-profile/share/man | 12:06:08 |
artemis | which does have some stuff in it but its stuff i think i actually installed rather than just shelling into | 12:06:27 |
Linux Hackerman | artemis: hm, which package are you getting via nix-shell? | 13:00:40 |
Linux Hackerman | nixos-install-tools does seem to include the manpages | 13:00:47 |