| 14 Sep 2022 |
Linux Hackerman | it's a different and more capable (though still not good :p ) protocol | 08:47:24 |
Linux Hackerman | the same one that's also used to communicate with the local daemon | 08:47:33 |
Wanja Hentze | o nice | 08:52:05 |
@palo:xaos.space | How to find out the derivativation that is generated by colmena, so I can upload it with ssh-ng ? | 09:42:11 |
Linux Hackerman | uuuuh good question | 09:48:15 |
Linux Hackerman | In reply to @yuka:yuka.dev
nixosConfigurations = (import (inputs.colmena + "/src/nix/hive/eval.nix") {
rawFlake = self;
colmenaOptions = import (inputs.colmena + "/src/nix/hive/options.nix");
colmenaModules = import (inputs.colmena + "/src/nix/hive/modules.nix");
}).nodes;
palo: if you're using flakes you can add something like this and nix eval .#nixosConfigurations.$hostname.config.system.toplevel.drvPath | 09:51:24 |
@palo:xaos.space | ah nice, thanks, I'll try that | 09:56:13 |
@palo:xaos.space | but I'm just using outputs.colmena.$hostname.config.system.toplevel.drvPath in my case. I haven't seen this colmenaOptions and colmenaModules so far. | 09:58:13 |
@palo:xaos.space | * but I'm just using outputs.colmena.$hostname.config.system.toplevel.drvPath in my case I guess. I haven't seen this colmenaOptions and colmenaModules so far. | 09:59:25 |
@palo:xaos.space | Hmm, I can't make it work :( | 10:03:03 |
@yuka:yuka.dev | In reply to @palo:xaos.space but I'm just using outputs.colmena.$hostname.config.system.toplevel.drvPath in my case I guess. I haven't seen this colmenaOptions and colmenaModules so far. that won't work | 10:07:12 |
@yuka:yuka.dev | tbh proves my point about colmena magically injecting stuff through its own entry point is a bad idea, it is very hard to understand for people how to actually evaluate your system outside of colmena then | 10:08:13 |
@palo:xaos.space | Hmm, so sad. But true, it's hard to understand how to evaluate the system outside colmean. | 10:16:50 |
Zhaofeng Li | I'll look into getting a makeHive WIP going this week. There are a few things I want to do:
- Support for
colmena.lib.makeHive which the user will use for their .#colmenaHive output. Should make it easier for people to evaluate outside of Colmena as well as enable alternative eval logic like divnix/std.
- Cleaner solution to https://github.com/zhaofengli/colmena/issues/78, allowing keyFile with relative paths to be used in a flake context without having the key files to be tracked by git.
- Dejank the key services: https://github.com/zhaofengli/colmena/pull/119
| 19:31:41 |
| search_sense joined the room. | 19:39:18 |
| 15 Sep 2022 |
| @ronnypfannschmidt:matrix.org joined the room. | 04:14:54 |
| 17 Sep 2022 |
Rémy Grünblatt | Hey | 07:53:17 |
Rémy Grünblatt | I probably asked for this before, but is there a possibility to deploy directories using colmena deploy keys ? | 07:53:33 |
Rémy Grünblatt | 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 |