Sender | Message | Time |
---|---|---|
7 May 2025 | ||
but ideally I could just nix build .#tests | 20:58:26 | |
without having to select an individual test | 20:58:37 | |
20:58:40 | ||
but with the option to | 20:58:41 | |
but e.g. package attributes can only be derivations or paths | 20:59:37 | |
create a dummy derivation tests which just draws in everything | 21:26:36 | |
22:33:07 | ||
8 May 2025 | ||
It'd be cool if --argstr worked with flake checks. I just did a little test and it failed because my arg wasn't defined in _module.args -- I didn't think checks relied in the module system, but that's kind of interesting if they do. Maybe someone who knows more about the checks attribute could confirm that. Parameterizing checks could be useful. | 04:36:15 | |
flake checks don't inherently use the module system as they're just derivations. do you use something like flake-parts? | 07:29:57 | |
like, just to be clear it is not an exaggeration that the nix cli has zero knowledge of how nixos modules work | 07:30:20 | |
08:58:19 | ||
Does anyone have an example of a Home Manager module shared via Flake? In the consuming flakes, I’d like it to be added directly to homeManagerModule.modules. The Home Manager module should be able to install packages from nixpkgs. | 10:50:41 | |
* Does anyone have an example of a Home Manager module shared via Flake? In the consuming flakes, I’d like it to be added directly to homeManagerModule.modules . The Home Manager module should be able to install packages from nixpkgs. | 10:51:05 | |
| 10:54:50 | |
*
use | 10:54:55 | |
Well I'd like to pass some things to the flake and this is what I came up with:
But this way I have to define everything a would need - like | 10:57:18 | |
* Well I'd like to pass some things to the flake and this is what I came up with:
But this way I have to define everything a module would need - like | 10:58:08 | |
just don't pass it lib , config , etc | 11:27:18 | |
modules are supposed to be a function | 11:27:30 | |
ideally, module inputs can be set through options | 11:29:09 | |
How would that be done? | 11:29:44 | |
https://nixos.org/manual/nixos/stable/#sec-writing-modules | 11:31:35 | |
I don't see how that mentions passing options from a consuming flake to an imported home manager module. | 11:33:47 | |
there is no mention of that because that has nothing to do with flakes | 11:34:20 | |
when you have something like in a "consuming flake"
all three modules are on equal footing, they can each have | 11:36:12 | |
* when you have something like in a "consuming flake"
all three modules are on equal footing, they can each have | 11:36:25 | |
do note that you can't have the value of an option affect the definition of options themselves (so, in short, no using config in imports or options ) | 11:37:20 | |
Okay, I see. The problem I have is that I want to pass a custom variable to bar for example. | 11:37:33 | |
that would be a cyclic dependency | 11:37:35 | |
what is the argument used for? | 11:38:32 |