| 17 Sep 2022 |
Reventlov | Hey | 07:53:17 |
Reventlov | I probably asked for this before, but is there a possibility to deploy directories using colmena deploy keys ? | 07:53:33 |
Reventlov | Also, can I use the same filename for different secrets in deployment.keys ? (it should be possible as I can put them in different directories) | 08:01:51 |
farcaller | why doesn't colmena pass pkgs to the default in flakes mode? (and how can I break/trace from colmena eval? it mostly sigaborts on me)
[INFO ] Enumerating nodes...
error: anonymous function at /nix/store/slfh70c84zn9fc9h27spd5b2yaf3hlp7-source/lib/vm/configuration.nix:1:1 called without required argument 'pkgs'
at /nix/store/slfh70c84zn9fc9h27spd5b2yaf3hlp7-source/lib/colmena/default.nix:17:20:
17| defaults = args: import ../vm/configuration.nix args;
| ^
18| }
| 19:52:43 |
farcaller | * why doesn't colmena pass pkgs to the defaults in flakes mode? (and how can I break/trace from colmena eval? it mostly sigaborts on me)
[INFO ] Enumerating nodes...
error: anonymous function at /nix/store/slfh70c84zn9fc9h27spd5b2yaf3hlp7-source/lib/vm/configuration.nix:1:1 called without required argument 'pkgs'
at /nix/store/slfh70c84zn9fc9h27spd5b2yaf3hlp7-source/lib/colmena/default.nix:17:20:
17| defaults = args: import ../vm/configuration.nix args;
| ^
18| }
| 19:53:23 |
| 18 Sep 2022 |
| lgcl (she/they) joined the room. | 06:30:05 |
@palo:xaos.space | In reply to @farcaller:matrix.org * why doesn't colmena pass pkgs to the defaults in flakes mode? (and how can I break/trace from colmena eval? it mostly sigaborts on me) [INFO ] Enumerating nodes...
error: anonymous function at /nix/store/slfh70c84zn9fc9h27spd5b2yaf3hlp7-source/lib/vm/configuration.nix:1:1 called without required argument 'pkgs'
at /nix/store/slfh70c84zn9fc9h27spd5b2yaf3hlp7-source/lib/colmena/default.nix:17:20:
17| defaults = args: import ../vm/configuration.nix args;
| ^
18| }
Where does these args come from? Is configuraton.nix a file that is expected to be loaded by imports (not import) by the nixos-module system? | 07:24:31 |
farcaller | In reply to @palo:xaos.space
Where does these args come from? Is configuraton.nix a file that is expected to be loaded by imports (not import) by the nixos-module system? literally from the same line :) I rewrote it as {pkgs,...} @ args: import ../vm/configuration.nix args and it worked and I don’t know why | 07:26:17 |
farcaller | but the reason I do it is because I wsnt to use the same configuration I have for nixos-generators as my defaults | 07:26:59 |
farcaller | and I need to pass it an extra argument (so actually it's args // {inherit datadir;} in the end there | 07:27:40 |
farcaller | * but the reason I do it is because I want to use the same configuration I have for nixos-generators as my defaults | 07:28:39 |
@yuka:yuka.dev | Probably lib.functionArgs is used on this function somewhere | 07:30:42 |
@palo:xaos.space | I would use the specialArgs parameter to pass datadir. You can use the same configuration if you use a let block and define it as variable or something. | 07:31:04 |
@yuka:yuka.dev | So it works as in callPackage | 07:31:06 |
farcaller | In reply to @palo:xaos.space
I would use the specialArgs parameter to pass datadir. You can use the same configuration if you use a let block and define it as variable or something. yeah, that's what I do in the generator config. I don’t think I can do the same with colmena, though | 07:32:27 |
@palo:xaos.space | https://colmena.cli.rs/unstable/reference/meta.html#specialargs and https://github.com/nix-community/nixos-generators/blob/master/flake.nix#L29 | 07:32:35 |
@palo:xaos.space | In reply to @farcaller:matrix.org In reply to @palo:xaos.space
I would use the specialArgs parameter to pass datadir. You can use the same configuration if you use a let block and define it as variable or something. yeah, that's what I do in the generator config. I don’t think I can do the same with colmena, though Yes you can :D | 07:32:49 |
farcaller | In reply to @yuka:yuka.dev Probably lib.functionArgs is used on this function somewhere that's the conclusion I came to in the end. Nix is very non-trivial to debug sometimes :( | 07:33:13 |