!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

You have reached the beginning of time (for this room).


SenderMessageTime
19 Feb 2025
@pc:rrier.frpcarrier
defaults = { foo = lib.mkOption { … } };
host = { foo = bar; }

doesn't work right?

13:00:56
@pc:rrier.frpcarrierah, got it, thanks13:30:27
@thesimplekid:matrix.org@thesimplekid:matrix.org left the room.14:49:23
@sako:sako.lolsako -w- joined the room.18:13:40
@pc:rrier.frpcarrierBeen stuck for a while with this error: https://gist.github.com/pcarrier/bc0173d20106cd178707f1955a1dafd819:19:35
@pc:rrier.frpcarrierAny ideas would be much appreciated19:19:40
@gmacon:matrix.orggmacon Looks like you need enable = config.roles ? etcd; since on the non-etcd hosts, config.roles will be an attrset that does not contain an etcd key, so you can't get the value of that key. Another option would be to ensure that roles always contains every possible role, but set to false for the roles this host doesn't have. 20:18:22
@pc:rrier.frpcarrierwell I thought I did exactly that through its default value20:19:22
@pc:rrier.frpcarrier
          options = {
            roles = mkOption {
              type = types.attrsOf types.bool;
              default = {
                bastion = false;
                spawner = false;
                etcd = false;
                webserver = false;
              };
            };
          };
20:20:05

Show newer messages


Back to Room ListRoom Version: 6