!UUqahLbShAYkkrXmKs:matrix.org

DevOS

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

Load older messages


SenderMessageTime
31 Oct 2021
@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.orgprincemachiavelliI 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
@ultranix:matrix.orgultranixevery time i rebuild it doesn't update the store path to a new nix conf19:19:30
@genadij.udarov:matrix.orggenadij.udarov
In reply to @genadij.udarov:matrix.org
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?
I was able to execute this. Prolly will update the docs so I won't forget in the future. :-D
21:26:24
@genadij.udarov:matrix.orggenadij.udarovhttps://github.com/divnix/devos/pull/398 Here we go.21:43:01
@genadij.udarov:matrix.orggenadij.udarov Btw, is there a way to access channels in profiles? I'd like to use few packages from latest (aka unstable), but I don't want to enumerate them in overrides.nix 22:11:38
@danielphan.2003:matrix.org@danielphan.2003:matrix.org You could inherit (channels) latest; in overrides.nix and refer to latest package via pkgs.latest 22:16:19
@danielphan.2003:matrix.org@danielphan.2003:matrix.orgYou can only access inputs in profiles, but not channels afaik22:16:55
@danielphan.2003:matrix.org@danielphan.2003:matrix.org * You can access inputs in profiles, but not channels afaik22:17:06
@genadij.udarov:matrix.orggenadij.udarovThanks!22:18:00
@genadij.udarov:matrix.orggenadij.udarovThat worked, awesome! <3 I'm wondering, why this isn't a default? Is there a reason, such as additional overhead?22:19:21
@danielphan.2003:matrix.org@danielphan.2003:matrix.org You could add channels to nixos.importables using inherit (self) channels, though I would avoid using importables for anything else than host infos 22:26:38
3 Nov 2021
@danielphan.2003:matrix.org@danielphan.2003:matrix.org Is there anyway to export a package set using overlays? In pkgs/default.nix I tried using __dontExport = false; but fup would not export it as desired 01:59:19
@danielphan.2003:matrix.org@danielphan.2003:matrix.org See https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/exportPackages.nix#L7001:59:25

Show newer messages


Back to Room ListRoom Version: 6