!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
18 Jul 2022
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameokay, I have a minimal example: https://privatebin.net/?849782ab0b96f528#9W3j2DCQz6fRo57akit3xWHGk3XquY9g5zE7tB6qotDi05:41:57
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name when I say "works", I mean the first version there creates the nginx vhost host.example.com, and the second version doesn't create it 05:42:21
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameand I"m not sure why, I woudl expect those two expressions to be equivalent05:42:35
19 Jul 2022
@zhaofeng:zhaofeng.liZhaofeng Li // only does shallow merging. For example, { fruits.apple = 1; } // { fruits.banana = 2; } returns { fruits.banana = 2; }. What you want for configurations is lib.mkMerge: https://nixos.org/manual/nixos/stable/#sec-option-definitions-merging 08:18:55
21 Jul 2022
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name huh, I did not know those were the semantics of // 20:25:08
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI wish that documentation had been easier to find20:25:46
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name

so, if I use lib.mkMerge in my code, I get this error:

error: You're trying to declare a value of type `lambda'
       rather than an attribute-set for the option
       `'!

       This usually happens if `' has option
       definitions inside that are not matched. Please check how to properly define
       this option by e.g. referring to `man 5 configuration.nix'!
(use '--show-trace' to show detailed location information)

20:44:30
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI'm not sure why20:44:33
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameis there a way I can have colmena use --show-trace?20:44:43
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameor in general if I"m trying to deploy something with colmena, is there a way I can get better debug information?20:44:58
@zhaofeng:zhaofeng.liZhaofeng Li Just --show-trace should do it 20:45:22
@zhaofeng:zhaofeng.liZhaofeng Li And also use -v to get the full output instead of the spinners 20:45:40
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameoh I need to wrap my function call in parens, then it works20:48:20
22 Jul 2022
@chrisportela:matrix.orgChris Portela joined the room.20:51:59

Show newer messages


Back to Room ListRoom Version: 6