10 Aug 2021 |
@kraftnix:matrix.org | my hack was essentially doing the same wrap that digga does and using tests = a rewrapped digga mkTest in the toplevel flake and passing in a host via self, i'll check to see if the above runs the test as well | 01:50:40 |
@kraftnix:matrix.org | no dice initially
error: The option `nixos.hosts.NixOS.tests' does not exist. Definition values:
- In `':
[
/nix/store/0a5pni2s4nv6ga7vkd0bw5sacxjvfdfq-source/tests/default.nix
]
| 01:54:34 |
@gtrunsec:matrix.org | In reply to @kraftnix:matrix.org
no dice initially
error: The option `nixos.hosts.NixOS.tests' does not exist. Definition values:
- In `':
[
/nix/store/0a5pni2s4nv6ga7vkd0bw5sacxjvfdfq-source/tests/default.nix
]
nix flake lock --update-input digga | 01:57:14 |
@gtrunsec:matrix.org | Notice: <Your hostName>.wait_for_unit("multi-user.target") | 01:57:46 |
David Arnold (blaggacao) | https://github.com/divnix/digga/commit/6f7b2c131e47d3dfe86b21e58ba1473b5475b71d | 01:57:55 |
David Arnold (blaggacao) | (that's the commit who introduced this) | 01:58:10 |
@gtrunsec:matrix.org | https://github.com/divnix/digga/commit/6f7b2c131e47d3dfe86b21e58ba1473b5475b71d#diff-abc2f781b5df15331c8736b838631189f26e7a000e5695555c3693097ad9b24bR154 machine = { ... }: { }; | 01:58:45 |
David Arnold (blaggacao) | Actually, yes. It can be both. | 02:00:33 |
David Arnold (blaggacao) | Ah ni, it can be only your version? | 02:01:13 |
David Arnold (blaggacao) | * Ah no, it can be only your version? | 02:01:20 |
@gtrunsec:matrix.org | In reply to @blaggacao:matrix.org Ah no, it can be only your version? Yes | 02:01:42 |
@kraftnix:matrix.org | ye that fixed it, nice | 02:02:23 |
@kraftnix:matrix.org | guess i have some catching up to do on the new digga additions, i've been on an older version in this branch for longer than expected | 02:02:58 |
David Arnold (blaggacao) | In reply to @gtrunsec:matrix.org Yes That seems strange though, they appear to be consumed as normal nixos configs here: https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/build-vms.nix | 02:14:13 |
Pacman99 | In reply to @blaggacao:matrix.org https://github.com/divnix/digga/commit/6f7b2c131e47d3dfe86b21e58ba1473b5475b71d Wow that is soo cool! | 02:15:54 |
@gtrunsec:matrix.org | In reply to @blaggacao:matrix.org That seems strange though, they appear to be consumed as normal nixos configs here: https://github.com/NixOS/nixpkgs/blob/master/nixos/lib/build-vms.nix Sorry, my bad both ok | 02:19:50 |
David Arnold (blaggacao) | I'm currently trying to tame yeet (a.k.a. deploy-rs ) to add fhe possibility to do the initial installation onto a non-NixOS host with a ssh access via yeet | 02:22:09 |
David Arnold (blaggacao) | (so we can drop the [brittle] upstream installers from nixpkgs ) | 02:22:55 |
David Arnold (blaggacao) | * I'm currently trying to tame `yeet` (a.k.a. `deploy-rs`) to add the possibility to do the initial installation onto a non-NixOS host with a ssh access via `yeet` | 02:23:12 |
@kraftnix:matrix.org | something like nixos-infect style install? or just home install | 02:23:16 |
David Arnold (blaggacao) | In reply to @kraftnix:matrix.org something like nixos-infect style install? or just home install I'm just trying to replicate nixos-install onto a mount place of one's chosing (can be / ) | 02:24:09 |
David Arnold (blaggacao) | Not sure how nixos-infect differs. | 02:24:29 |
David Arnold (blaggacao) | I'd have to have a look. | 02:24:35 |
@kraftnix:matrix.org | ah that, yes that would be extremely useful and save me a lot of time during bootstrap | 02:24:39 |
@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 |