| 23 May 2023 |
bendlas | 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:00:01 |
figsoda | 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 | 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 | and what would I set that to, in this scenario? | 23:08:54 |
figsoda | probably to the path that has your overlays | 23:09:11 |
bendlas | 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 | 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 | you would probably want to put it in a file | 23:11:47 |
figsoda | otherwise you can do stuff like (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>.nixpkgs.overlays | 23:13:07 |
figsoda | or (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>._module.args.pkgs | 23:13:57 |
figsoda | * or (builtins.getFlake "/path/to/your/nixos/config").nixosConfigurations.<name>._module.args.pkgs if you want to overwrite <nixpkgs> | 23:14:07 |
figsoda | you can replace /path/to/your/nixos/config with an interpolation of a relative path if that makes it easier | 23:15:03 |
figsoda | and you can put that in a separate file or wrap it with a writeText or toFile | 23:15:42 |
bendlas | that'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 | 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 | * 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 | 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 | I 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 | 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 left the room. | 18:09:54 |
| 27 May 2023 |
| tfortmuller joined the room. | 07:13:06 |
| NixOS Moderation Botchanged room power levels. | 16:41:40 |
| 28 May 2023 |
| @uwap:ohai.su joined the room. | 14:11:04 |
| @uwap:ohai.su left the room. | 14:12:59 |
| yuu left the room. | 20:31:40 |
| 29 May 2023 |
@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 | same error with repo `pola-rs/r-polars` | 02:57:32 |
kenji | Seems unmaintained, what happens if you remove the hashes?
| 06:34:40 |
kenji | This doesn't seem like a flake specific problem.
| 06:35:04 |
@peddie:matrix.org | ok thanks, opened an issue on github | 07:00:51 |