!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

891 Members
179 Servers

Load older messages


SenderMessageTime
23 May 2023
@figsoda:matrix.orgfigsoda
In reply to @bendlas:matrix.org
and if I do, it would read <nixpkgs-overlay> as well as NIXPKGS_CONFIG, in order to configure nixpkgs. And how would I best configure that with flake-based nixos config?
you can set nixpkgs-overlay in nix.nixPath
23:08:14
@figsoda:matrix.orgfigsoda
In reply to @bendlas:matrix.org
and if I do, it would read <nixpkgs-overlay> as well as NIXPKGS_CONFIG, in order to configure nixpkgs. And how would I best configure that with flake-based nixos config?
* you can set nixpkgs-overlays in nix.nixPath
23:08:26
@bendlas:matrix.orgbendlasand what would I set that to, in this scenario?23:08:54
@figsoda:matrix.orgfigsodaprobably to the path that has your overlays23:09:11
@bendlas:matrix.orgbendlas
In reply to @bendlas:matrix.org
Particularly, how would I best make it so that it takes the same configs and overlays, as configured through nixos modules? The wiki section I referenced, has stub files that do import <nixpkgs/nixos> {}, but that doesn't work so well with flakes ...
.
23:09:20
@bendlas:matrix.orgbendlas
In reply to @bendlas:matrix.org
Particularly, how would I best make it so that it takes the same configs and overlays, as configured through nixos modules? The wiki section I referenced, has stub files that do import <nixpkgs/nixos> {}, but that doesn't work so well with flakes ...
* I don't have them in overlay files, but each module can add overlays and nixpkgs config as it needs to.
23:11:15
@figsoda:matrix.orgfigsodayou would probably want to put it in a file23:11:47
@figsoda:matrix.orgfigsoda otherwise you can do stuff like (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>.nixpkgs.overlays 23:13:07
@figsoda:matrix.orgfigsoda or (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>._module.args.pkgs 23:13:57
@figsoda:matrix.orgfigsoda * or (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>._module.args.pkgs if you want to overwrite <nixpkgs> 23:14:07
@figsoda:matrix.orgfigsoda you can replace /path/to/your/nixos/config with an interpolation of a relative path if that makes it easier 23:15:03
@figsoda:matrix.orgfigsoda and you can put that in a separate file or wrap it with a writeText or toFile 23:15:42
@bendlas:matrix.orgbendlasthat's not what I wanna do. but no problem. either I'll figure it out, or maybe someone who has solved this comes along ..23:17:58
@bendlas:matrix.orgbendlas Repeating this here: Does anybody have a working nixos flake config, that can share nixpkgs config and overlays between nixos modules and other nix tools doing import <nixpkgs>? 23:21:28
@bendlas:matrix.orgbendlas * Repeating this here: Does anybody have a working nixos flake config, that can share nixpkgs config and overlays between nixos modules and other nix tools doing import <nixpkgs>? In a way similar to the Using nixpkgs.overlays from configuration.nix section in https://nixos.wiki/wiki/Overlays? 23:23:03
@figsoda:matrix.orgfigsoda
In reply to @figsoda:matrix.org
otherwise you can do stuff like (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>.nixpkgs.overlays
that's what this does
23:25:33
@bendlas:matrix.orgbendlasI see. I was going in that direction (only with flake-compat), but couldn't test it so far because of unrelated difficulties. So I wondered if anyone already had something up.23:28:28
@bendlas:matrix.orgbendlas but I had a hunch that it would work like that, once I pushed it to a repo and didn't need --override-input any more -- which makes getFlake as well as flake-compat break in my test container 23:32:32
24 May 2023
@phelix:c-base.org@phelix:c-base.org left the room.18:09:54
27 May 2023
@tfortmuller:matrix.orgtfortmuller joined the room.07:13:06
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.16:41:40
28 May 2023
@uwap:ohai.su@uwap:ohai.su joined the room.14:11:04
@uwap:ohai.su@uwap:ohai.su left the room.14:12:59
@yuu:matrix.org@yuu:matrix.org left the room.20:31:40
29 May 2023
@peddie:matrix.org@peddie:matrix.org hi, I tried to run nix develop on a flake-enabled repository and got error: A hash was specified for <package>, but there is no corresponding git dependency. in the flake.nix file in question, indeed I see a list of outputHashes but no other reference to the package in question (https://github.com/pola-rs/r-polars/blob/main/flake.nix#L23 arrow2-0.16.0). is this a flake problem? the specific command was nix develop github:Sicheng-Pan/r-polars 02:48:47
@peddie:matrix.org@peddie:matrix.orgsame error with repo `pola-rs/r-polars`02:57:32
@a-kenji:matrix.orgkenjiSeems unmaintained, what happens if you remove the hashes? 06:34:40
@a-kenji:matrix.orgkenjiThis doesn't seem like a flake specific problem. 06:35:04
@peddie:matrix.org@peddie:matrix.orgok thanks, opened an issue on github07:00:51
@peddie:matrix.org@peddie:matrix.orgjust didn't recognise that error message and initial googling suggested maybe flakes were associated with the error07:03:38

Show newer messages


Back to Room ListRoom Version: 6