!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

253 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena87 Servers

Load older messages


SenderMessageTime
12 Jul 2024
@ser:sergevictor.euser(ial) joined the room.09:47:15
@ser:sergevictor.euser(ial)I don't understand how can I split my hive.nix into several files 09:54:12
@ser:sergevictor.euser(ial)for example every host definition in a separate file - how to include them into hive.nix? 09:54:51
@ser:sergevictor.euser(ial)colmena manual is silent about it 09:55:44
@craige:mcwhirter.iocraige

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:sergevictor.euser(ial)OK, i haven'10:27:14
@ser:sergevictor.euser(ial)tr tried this, thanks - what if i want to import two hosts defined in one file?10:28:16
@craige:mcwhirter.iocraigeThat will also work.10:28:55
@ser:sergevictor.euser(ial)for example "webservers.nix"10:28:59
@craige:mcwhirter.iocraigeIt's standard Nix imports. You just need to import at the correct point.10:29:29
@ser:sergevictor.euser(ial)i can imagine, but i am not able to find the correct one10:29:54
@craige:mcwhirter.iocraige

Something like:

colmena = { imports = [ webservers.nix] };

may work.

10:33:07
@ser:sergevictor.euser(ial)let me try, thanks10:33:20
@ser:sergevictor.euser(ial) i tried using this: colmena = { imports = [ ./dnsrv.nix ]; }; 10:42:46
@ser:sergevictor.euser(ial)but10:42:51
@ser:sergevictor.euser(ial)it does not work10:42:56
@ser:sergevictor.euser(ial)what should be syntax of included file?10:43:13
@ser:sergevictor.euser(ial) if i just write hostdef = {.... 10:43:41
@ser:sergevictor.euser(ial)error: syntax error, unexpected '=', expecting end of file10:44:00
@ser:sergevictor.euser(ial)if i put host definitions between `{}10:44:29
@ser:sergevictor.euser(ial)error: The option `nixdnsrv1' does not exist. Definition values:10:45:02
13 Jul 2024
@test-user:c.imperishable.namerendakuenthusiast⚡️ Zhaofeng Li: any plans to do another colmena release in the near future? 07:31:40
@MartiniMoe:matrix.org@MartiniMoe:matrix.org left the room.08:00:07
@cadair:cadair.com@cadair:cadair.com joined the room.12:40:42
@zhaofeng:zhaofeng.liZhaofeng LiAfter I rework the flake evaluation (right now we do the getFlake "hack"), yes21:20:27
@zhaofeng:zhaofeng.liZhaofeng 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@cadair:cadair.com left the room.21:45:40
14 Jul 2024
@cathal_mullan:matrix.orgCJ joined the room.15:43:33
16 Jul 2024
@tomasharkema:matrix.orgtomasharkema joined the room.01:49:02
18 Jul 2024
@marshmallow:althaea.zonemarshmallow changed their profile picture.00:48:39

Show newer messages


Back to Room ListRoom Version: 6