!UUqahLbShAYkkrXmKs:matrix.org

DevOS

37 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
9 Aug 2021
@blaggacao:matrix.orgDavid 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
@blaggacao:matrix.orgDavid Arnold (blaggacao)😁20:34:33
10 Aug 2021
@kraftnix:matrix.org@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@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@gtrunsec:matrix.orgimage.png
Download image.png
01:46:47
@gtrunsec:matrix.org@gtrunsec:matrix.orgI'm going to PR this example, you can try this one first01:47:02
@kraftnix:matrix.org@kraftnix:matrix.orgoh so you can just put it inside of hosts, thats neat, I already cobbled together a hacky solution but far cleaner01:47:43
@kraftnix:matrix.org@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 cleaner01:47:53
@kraftnix:matrix.org@kraftnix:matrix.orgmy 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 well01:50:40
@kraftnix:matrix.org@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@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@gtrunsec:matrix.orgNotice: <Your hostName>.wait_for_unit("multi-user.target")01:57:46
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/divnix/digga/commit/6f7b2c131e47d3dfe86b21e58ba1473b5475b71d01:57:55
@blaggacao:matrix.orgDavid Arnold (blaggacao)(that's the commit who introduced this)01:58:10
@gtrunsec:matrix.org@gtrunsec:matrix.org https://github.com/divnix/digga/commit/6f7b2c131e47d3dfe86b21e58ba1473b5475b71d#diff-abc2f781b5df15331c8736b838631189f26e7a000e5695555c3693097ad9b24bR154 machine = { ... }: { }; 01:58:45
@blaggacao:matrix.orgDavid Arnold (blaggacao)Actually, yes. It can be both.02:00:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)Ah ni, it can be only your version?02:01:13
@blaggacao:matrix.orgDavid Arnold (blaggacao)* Ah no, it can be only your version?02:01:20
@gtrunsec:matrix.org@gtrunsec:matrix.org
In reply to @blaggacao:matrix.org
Ah no, it can be only your version?
Yes
02:01:42
@kraftnix:matrix.org@kraftnix:matrix.orgye that fixed it, nice02:02:23
@kraftnix:matrix.org@kraftnix:matrix.orgguess 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 expected02:02:58
@blaggacao:matrix.orgDavid 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
@pachumicchu:myrdd.infoPacman99
In reply to @blaggacao:matrix.org
https://github.com/divnix/digga/commit/6f7b2c131e47d3dfe86b21e58ba1473b5475b71d
Wow that is soo cool!
02:15:54
@gtrunsec:matrix.org@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
@blaggacao:matrix.orgDavid 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
@blaggacao:matrix.orgDavid Arnold (blaggacao) (so we can drop the [brittle] upstream installers from nixpkgs) 02:22:55
@blaggacao:matrix.orgDavid 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@kraftnix:matrix.orgsomething like nixos-infect style install? or just home install02:23:16
@blaggacao:matrix.orgDavid 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
@blaggacao:matrix.orgDavid Arnold (blaggacao)Not sure how nixos-infect differs.02:24:29

There are no newer messages yet.


Back to Room ListRoom Version: 6