| 31 Oct 2021 |
@kraftnix:matrix.org | i've been running it like this since the beginning of 2021 | 17:31:33 |
Pacman99 | I 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 |
Pacman99 | Is your config public? Or I can try to reproduce it later with my setup. | 17:56:17 |
princemachiavelli | I 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 | 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 | 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 | 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 | 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 | omg, nix 2.4 released | 15:05:54 |
Pacman99 | 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 |
Pacman99 | boot.binfmt.emulatedSystems = [ "x86_64-linux" ]; But I don't know if there is something like that for darwin. | 15:58:14 |
Pacman99 | 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 | 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 | 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 | I suppose, I should be using extraConfig, but will it work? As I undestand, lib.mapAttrs returns a list? | 18:31:24 |
genadij.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 | how do you make changes to nix.conf with devos? | 19:19:02 |
ultranix | nixConfig.* ? | 19:19:08 |
ultranix | every time i rebuild it doesn't update the store path to a new nix conf | 19:19:30 |
genadij.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 | https://github.com/divnix/devos/pull/398
Here we go. | 21:43:01 |
genadij.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 | You could inherit (channels) latest; in overrides.nix and refer to latest package via pkgs.latest | 22:16:19 |
@danielphan.2003:matrix.org | You can only access inputs in profiles, but not channels afaik | 22:16:55 |
@danielphan.2003:matrix.org | * You can access inputs in profiles, but not channels afaik | 22:17:06 |
genadij.udarov | Thanks! | 22:18:00 |
genadij.udarov | That 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 | 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 | 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 |
See https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/exportPackages.nix#L70 | 01:59:25 |