!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
29 Oct 2021
@b12f:pub.solarb12f *

RFC 135

MINE
EVERYTHING MUST BE MINE
MINNNNEEEEE
16:45:03
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgIM TAKING OVER NIXOS FOUNDATION17:13:53
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgblagg page thingy became private 🤔17:15:06
@gytis-ivaskevicius:matrix.org@gytis-ivaskevicius:matrix.orgimage.png
Download image.png
17:15:07
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @gytis-ivaskevicius:matrix.org
blagg page thingy became private 🤔
https://discourse.nixos.org/t/about-a-recent-moderation-action-post-on-discourse/15764
17:25:14
30 Oct 2021
@kraftnix:matrix.org@kraftnix:matrix.org

I just updated to the latest nixpkgs and I am suddenly having some issues with digga's mkTest, the nodes in the test no longer have system defined, here is an example from a repl:

nix-repl> Flake.checks.x86_64-linux.customTestFor-vmIso-simple-trilium.system
"x86_64-linux"

nix-repl> Flake.checks.x86_64-linux.customTestFor-vmIso-simple-trilium.passthru.nodes.machine.pkgs.system
error: attribute 'system' missing

       at «string»:1:1:

            1| Flake.checks.x86_64-linux.customTestFor-vmIso-simple-trilium.passthru.nodes.machine.pkgs.system
             | ^
            2|

I'm having a look to see why this is, but any advice / thoughts are welcome

08:25:18
@kraftnix:matrix.org@kraftnix:matrix.org I have no issues building any of the systems which the test use as a base, it seems this issue only occurs in checks 08:27:16
31 Oct 2021
@kraftnix:matrix.org@kraftnix:matrix.org

This was insanely difficult to track down (5-6hrs lost on this) as the stack track was not useful at all. The only thing that caused the error was this one LoC, and I don't really understand how it could cause the config to no longer have the system attribute as no where in the stack trace referenced anything related to this.

  nixpkgs.config.allowUnfree = false;
16:21:41
@kraftnix:matrix.org@kraftnix:matrix.org *

This was insanely difficult to track down (5-6hrs lost on this) as the stack track was not useful at all. The only thing that caused the error was this one LoC, and I don't really understand how it could cause the pkgs in a config to no longer have the system attribute as no where in the stack trace referenced anything related to this.

  nixpkgs.config.allowUnfree = false;
16:22:14
@kraftnix:matrix.org@kraftnix:matrix.org the other strange part of it was that only checks broke, I could still build and deploy hosts with no issues. 17:01:35
@princemachiavelli:matrix.org@princemachiavelli:matrix.org kraftnix: What are your nixpkg inputs (nixos & latest inputs)? 17:09:11
@kraftnix:matrix.org@kraftnix:matrix.orgnixos = unstable, latest=master17:31:18
@kraftnix:matrix.org@kraftnix:matrix.orgi've been running it like this since the beginning of 202117:31:33
@pachumicchu:myrdd.infoPacman99I think it could be because the pkgs inside the test nodes are not being instantiated right or exported right. allowUnfree might just have fixed the underlying error by changing how nixpkgs is exported.17:55:42
@pachumicchu:myrdd.infoPacman99Is your config public? Or I can try to reproduce it later with my setup.17:56:17
@princemachiavelli:matrix.org@princemachiavelli:matrix.orgI found that just doing a manual bisect of the latest/master input is a decent way to figure out these problems. I would just manually set the latest input it different commit hash IDs until you find the breaking upstream change.18:07:54
@kraftnix:matrix.org@kraftnix:matrix.org
In reply to @pachumicchu:myrdd.info
Is your config public? Or I can try to reproduce it later with my setup.
my config is not public, but it is trivial to reproduce, simply use unstable as your nixos input and add nixpkgs.config.allowUnfree = false; to a host config with a custom test (which can be an empty custom test)
18:21:44
@kraftnix:matrix.org@kraftnix:matrix.org interestingly if you put nixpkgs.config.allowUnfree = false; within the test config it does not throw errors, it only throws errors if you have that within your host config (or a profile imported by the host). 18:23:07
@genadij.udarov:matrix.orggenadij.udarov

Hey. I'm wondering, is it possible to run deploy from x86_64-darwin host? Or I should stop trying and run it on a VM? The error I encounter is this:

error: a 'x86_64-linux' with features {} is required to build '/nix/store/1z6p4anlsbbyv4gkcck6jdzdj0qi1jzj-builder.pl.drv', but I am a 'x86_64-darwin' with features {benchmark, big-parallel, nixos-test, recursive-nix}
🚀 ❌ [deploy] [ERROR] Failed to check deployment: Nix checking command resulted in a bad exit code: Some(1)
18:46:49
@genadij.udarov:matrix.orggenadij.udarov command I run from devshell (nix develop) is this:deploy '.#remotedev' --hostname XXX --ssh-user YYY --fast-connection true 18:47:24
2 Nov 2021
@ultranix:matrix.orgultranixomg, nix 2.4 released15:05:54
@pachumicchu:myrdd.infoPacman99
In reply to @genadij.udarov:matrix.org

Hey. I'm wondering, is it possible to run deploy from x86_64-darwin host? Or I should stop trying and run it on a VM? The error I encounter is this:

error: a 'x86_64-linux' with features {} is required to build '/nix/store/1z6p4anlsbbyv4gkcck6jdzdj0qi1jzj-builder.pl.drv', but I am a 'x86_64-darwin' with features {benchmark, big-parallel, nixos-test, recursive-nix}
🚀 ❌ [deploy] [ERROR] Failed to check deployment: Nix checking command resulted in a bad exit code: Some(1)
I think it might be possible, I've deployed to a x86_64-linux from a aarch64-linux once. You have to use the binfmt option to add an emulated system.
15:57:37
@pachumicchu:myrdd.infoPacman99 boot.binfmt.emulatedSystems = [ "x86_64-linux" ];
But I don't know if there is something like that for darwin.
15:58:14
@pachumicchu:myrdd.infoPacman99
In reply to @kraftnix:matrix.org
my config is not public, but it is trivial to reproduce, simply use unstable as your nixos input and add nixpkgs.config.allowUnfree = false; to a host config with a custom test (which can be an empty custom test)
Ohh got it, so there might be something done to build the checks that assumes allowUnfree is true.
16:05:43
@genadij.udarov:matrix.orggenadij.udarov
In reply to @pachumicchu:myrdd.info
boot.binfmt.emulatedSystems = [ "x86_64-linux" ];
But I don't know if there is something like that for darwin.
Thanks, will check it out! I've resorted to Linux VM for now, but it will definitely be useful in the future.
16:56:11
@genadij.udarov:matrix.orggenadij.udarov Would it be possible to deploy home configs together with system profile, when using deploy-rs? I'm not entirely sure how to inject additional profiles to deploy.nodes defined at https://github.com/divnix/digga/blob/a55450a16d362b6e1c50bb4025aaa604b385d3ba/src/generators.nix#L66 18:29:56
@genadij.udarov:matrix.orggenadij.udarov I suppose, I should be using extraConfig, but will it work? As I undestand, lib.mapAttrs returns a list? 18:31:24
@genadij.udarov:matrix.orggenadij.udarov * I suppose, I should be using extraConfig, but will it work? As I undestand, lib.mapAttrs returns a list? In other languages, recursiveUpdate would operate on maps instead of lists, right? 18:31:48
@ultranix:matrix.orgultranixhow do you make changes to nix.conf with devos?19:19:02
@ultranix:matrix.orgultranixnixConfig.* ?19:19:08

Show newer messages


Back to Room ListRoom Version: 6