12 Jul 2024 |
| ser(ial) joined the room. | 09:47:15 |
ser(ial) | I don't understand how can I split my hive.nix into several files | 09:54:12 |
ser(ial) | for example every host definition in a separate file - how to include them into hive.nix? | 09:54:51 |
ser(ial) | colmena manual is silent about it | 09:55:44 |
craige | You can import files like you can anywhere else in Nix. Try something like:
myHost = { imports = [myHost.nix]};
It's probably not in the manual because it's Nix thing, not a Colmena thing. | 10:26:12 |
ser(ial) | OK, i haven' | 10:27:14 |
ser(ial) | tr tried this, thanks - what if i want to import two hosts defined in one file? | 10:28:16 |
craige | That will also work. | 10:28:55 |
ser(ial) | for example "webservers.nix" | 10:28:59 |
craige | It's standard Nix imports. You just need to import at the correct point. | 10:29:29 |
ser(ial) | i can imagine, but i am not able to find the correct one | 10:29:54 |
craige | Something like:
colmena = { imports = [ webservers.nix] };
may work. | 10:33:07 |
ser(ial) | let me try, thanks | 10:33:20 |
ser(ial) | i tried using this: colmena = { imports = [ ./dnsrv.nix ]; }; | 10:42:46 |
ser(ial) | but | 10:42:51 |
ser(ial) | it does not work | 10:42:56 |
ser(ial) | what should be syntax of included file? | 10:43:13 |
ser(ial) | if i just write hostdef = {.... | 10:43:41 |
ser(ial) | error: syntax error, unexpected '=', expecting end of file | 10:44:00 |
ser(ial) | if i put host definitions between `{} | 10:44:29 |
ser(ial) | error: The option `nixdnsrv1' does not exist. Definition values: | 10:45:02 |
13 Jul 2024 |
rendakuenthusiast⚡️ | Zhaofeng Li: any plans to do another colmena release in the near future? | 07:31:40 |
| @MartiniMoe:matrix.org left the room. | 08:00:07 |
| @cadair:cadair.com joined the room. | 12:40:42 |
Zhaofeng Li | After I rework the flake evaluation (right now we do the getFlake "hack"), yes | 21:20:27 |
Zhaofeng Li | In reply to @ser:sergevictor.eu error: The option `nixdnsrv1' does not exist. Definition values: It can be something like { host_a = ...; } // (import ./bunch-of-other-nodes.nix)
| 21:21:50 |
| @cadair:cadair.com left the room. | 21:45:40 |
14 Jul 2024 |
| CJ joined the room. | 15:43:33 |
16 Jul 2024 |
| tomasharkema joined the room. | 01:49:02 |
18 Jul 2024 |
| marshmallow changed their profile picture. | 00:48:39 |