10 Aug 2021 |
@kraftnix:matrix.org | nixos-infect is designed to infect something like ubuntu/arch etc. and create a nixos system in place, i used it a long time ago when a VPS didn't support uploading isos or provide nixos | 02:25:35 |
@gtrunsec:matrix.org | if Non-NixOS how do you solve the target build host? like https://github.com/serokell/deploy-rs/issues/12 | 02:25:49 |
David Arnold (blaggacao) | Well it's built locally and the pushed to the mountpoint and activated and via nixos-enter the bootloder will be installed. | 02:27:16 |
David Arnold (blaggacao) | * Well it's built locally and the pushed to then mountpoint and activated and via nixos-enter the bootloder will be installed. | 02:27:27 |
David Arnold (blaggacao) | nixos-infect trues to be too smart, I feel. | 02:27:54 |
David Arnold (blaggacao) | For do, you'd create a single boostrap image and then launch droplets from it. And make sure it has your pubkey and then boistrap the actual non-anonymous host from it. | 02:28:31 |
David Arnold (blaggacao) | * For do, you'd create a single boostrap image and then launch droplets from it. And make sure it has your pubkey and then bootstrap the actual non-anonymous host from it. | 02:28:42 |
David Arnold (blaggacao) | * For do, you'd create a single bootstrap image and then launch droplets from it. And make sure it has your pubkey and then bootstrap the actual non-anonymous host from it. | 02:28:47 |
David Arnold (blaggacao) | * Well it's built locally and then pushed to then mount-point and activated and via nixos-enter the bootloder will be installed. | 02:29:01 |
David Arnold (blaggacao) | * Well it's built locally and then pushed to then mount-point and activated and via nixos-enter the bootloader will be installed. | 02:29:07 |
David Arnold (blaggacao) | * `nixos-infect` tries to be too smart, I feel. | 02:29:21 |
David Arnold (blaggacao) | Not sure why nixos-infect has had it's inplementation so complicated? | 02:30:26 |
David Arnold (blaggacao) | Maybe to procure a different cli UX. | 02:30:41 |
@kraftnix:matrix.org | In reply to @blaggacao:matrix.org
nixos-infect tries to be too smart, I feel. probably, although it definitely impressed me that nixos could do that when i was first starting out | 02:30:51 |
David Arnold (blaggacao) | Hahah, as tim wrote in the Foreword. The system is just a package (file tree) | 02:31:23 |
David Arnold (blaggacao) | * Hahah, as Tim wrote in the Foreword. The system is just a package (file tree) | 02:31:34 |
@kraftnix:matrix.org | theres a difference between thinking that and seeing it done :) | 02:31:54 |
David Arnold (blaggacao) | So I guess yeet --mount-point '/mnt' should be soon able to install nixos remotely (after manual formatting) | 02:33:25 |
@kraftnix:matrix.org | i will be very happy to test that feature out | 02:34:04 |
David Arnold (blaggacao) | But nothing hinders anybody, to write a formatting script into the deploy-rs activation script as well. | 02:34:15 |
David Arnold (blaggacao) | Ah no! That would have to be run earlier. | 02:34:32 |
David Arnold (blaggacao) | So maybe yeet --formatting-script ./path/to/gparted-script could be a thing. | 02:35:19 |
@kraftnix:matrix.org | i essentially have those scripts for a standard VM (expecting /dev/vda) and full disk btrfs/zfs on BIOS/UEFI with LUKS support as well) | 02:35:52 |
@kraftnix:matrix.org | you could also achieve the same with an ssh activation script, probably? | 02:36:14 |
David Arnold (blaggacao) | But that's actually would not be any different from doing the same thing via ssh plain. | 02:36:20 |
David Arnold (blaggacao) | Yeah, maybe out of scope. | 02:36:44 |
David Arnold (blaggacao) | * Yeah, maybe out of scope (for `yeet`). | 02:36:56 |
@kraftnix:matrix.org | in scope for bud wrapped yeet? | 02:37:10 |
@kraftnix:matrix.org | at least my bud if i get around to it, although i shouldn't need to provision machines for a while so it would mostly be for fun | 02:38:14 |
David Arnold (blaggacao) | Hm, yeah maybe a bud format-host or something. Since the exact command might be a bit pesky to remember | 02:39:06 |