2 Nov 2021 |
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 |
@danielphan.2003:matrix.org |
and https://github.com/danielphan2003/nixpkgs/blob/39cd9a7e13c0fda23a8f1bc656fb7a284b2a18eb/pkgs/default.nix | 01:59:29 |
@danielphan.2003:matrix.org | My plan is to be able to do nix eval --raw '.#sources.<pname>.src' so I could do some fancy things like using gomod2nix . | 01:59:36 |
Pacman99 | package "subsystems" or attrsets aren't exported by default, so you have to set sources.__dontExport = true; | 02:00:21 |
@danielphan.2003:matrix.org | I did, but it just never output anything. I workaround this by using pkgs.emptyText and passthru the sources to it | 02:03:51 |
@danielphan.2003:matrix.org |  Download image.png | 02:05:44 |
5 Nov 2021 |
| @meccine:matrix.org left the room. | 04:21:54 |
6 Nov 2021 |
| Pacman99 invited David Arnold (blaggacao). | 04:48:38 |
| David Arnold (blaggacao) joined the room. | 04:49:21 |
8 Nov 2021 |
David Arnold (blaggacao) | Re: oberlays handling.
Ringer today showed me:
`overlay = final: prev: nixpkgs.lib.composeManyExtensions overlays) final prev; | 23:13:12 |
David Arnold (blaggacao) | * Re: oberlays handling.
Ringer today showed me:
`overlay = final: prev: nixpkgs.lib.composeManyExtensions overlays) final prev;` | 23:13:25 |
David Arnold (blaggacao) | * **Re: oberlays handling.**
Ringer today showed me:
`overlay = final: prev: nixpkgs.lib.composeManyExtensions overlays) final prev;` | 23:13:40 |
David Arnold (blaggacao) | * **Re: oberlays handling.**
Ringer today showed me:
```nix
{
overlay = final: prev: nixpkgs.lib.composeManyExtensions overlays) final prev;
}
``` | 23:14:04 |
David Arnold (blaggacao) | This makes all overlays again available as if they where all defined in a single overlay. | 23:14:37 |
David Arnold (blaggacao) | That most notable implication is that final can be cross referenced between them. | 23:14:59 |
David Arnold (blaggacao) | We encourage separation into "atomic" overlay sets in devos, but this can be seen as a an escape hatch if need be. | 23:15:33 |
David Arnold (blaggacao) | The "milacrous" merging of final s is something that one has to maintain vigilant about. | 23:16:06 |
11 Nov 2021 |
@gtrunsec:matrix.org | Hi everyone, how about this feature https://github.com/GTrunSec/Coding-Dev-Env-With-NixFlake/runs/4182681465?check_suite_focus=true extend your bud command | 20:23:25 |
@gtrunsec:matrix.org | Example: https://github.com/GTrunSec/Coding-Dev-Env-With-NixFlake/tree/main/devshell/shell PR: https://github.com/divnix/bud/pull/29 | 23:02:39 |
12 Nov 2021 |
David Arnold (blaggacao) | In reply to @gtrunsec:matrix.org Hi everyone, how about this feature https://github.com/GTrunSec/Coding-Dev-Env-With-NixFlake/runs/4182681465?check_suite_focus=true extend your bud command gtrunsec: I think that use case is already covered differently. For a python script, youd'd not use makBashScript... But a Python script runner... A few good examples to steal.from are in github.com/input-output-hk/cicero (in the lib - rg run ). | 21:47:40 |
David Arnold (blaggacao) | As for cuatom modules, one can already do self.budModules.name = {} | 21:48:19 |
David Arnold (blaggacao) | Iirc, consequently one can do self.budModules.name = null to switch one off. | 21:48:43 |