9 Aug 2021 |
@gtrunsec:matrix.org | Redacted or Malformed Event | 06:54:27 |
@gtrunsec:matrix.org | Redacted or Malformed Event | 06:54:33 |
@gtrunsec:matrix.org | * error: infinite recursion encountered
at /nix/store/dsz9k3jxlm8dh4j0nzrkxpp9najaqqnz-source/lib/fixed-points.nix:69:67:
68| #
69| extends = f: rattrs: self: let super = rattrs self; in super // f self super;
| ^
70|
(use '--show-trace' to show detailed location information)
| 06:54:55 |
@timdeh:matrix.org | Okay so we decided to do both in order to fairly represent the current state of things | 15:36:27 |
@timdeh:matrix.org | any feedback would be great here:
https://github.com/divnix/nix-book/pull/1 | 19:34:38 |
@timdeh:matrix.org | cc David Arnold (blaggacao) Pacman99 | 19:34:58 |
@timdeh:matrix.org | * cc David Arnold (blaggacao) Pacman99 (and anyone else who'd like to take a look 😃) | 19:35:30 |
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 |