9 Aug 2021 |
David Arnold (blaggacao) | In reply to @timdeh:matrix.org any feedback would be great here:
https://github.com/divnix/nix-book/pull/1 https://youtu.be/rcZp7u_Krp8 | 20:34:30 |
David Arnold (blaggacao) | 😁 | 20:34:33 |
10 Aug 2021 |
@kraftnix:matrix.org | Is there any example somewhere of how to use digga 's mkTest within devos ? The docs point to a tests/default.nix which no longer exists, I tried to scout for that file in git but the latest version I could find is a very old devos/digga from April. I'd quite like to start adding my own integration tests but am scratching my head on how to do it the devos/digga way. | 00:29:06 |
@gtrunsec:matrix.org | In reply to @kraftnix:matrix.org Is there any example somewhere of how to use digga 's mkTest within devos ? The docs point to a tests/default.nix which no longer exists, I tried to scout for that file in git but the latest version I could find is a very old devos/digga from April. I'd quite like to start adding my own integration tests but am scratching my head on how to do it the devos/digga way. Sorry, we did a syntax error with option of tests on doc | 01:45:58 |
@gtrunsec:matrix.org |  Download image.png | 01:46:47 |
@gtrunsec:matrix.org | I'm going to PR this example, you can try this one first | 01:47:02 |
@kraftnix:matrix.org | oh so you can just put it inside of hosts, thats neat, I already cobbled together a hacky solution but far cleaner | 01:47:43 |
@kraftnix:matrix.org | * oh so you can just put it inside of hosts, thats neat, I already cobbled together a hacky solution but this is far cleaner | 01:47:53 |
@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 |