!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
19 Jun 2023
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name so, if I set that, then I should be able to access {config, pkgs, inputs, ...}: in any submodule I declare? 05:57:28
@zhaofeng:zhaofeng.liZhaofeng Liyeah05:57:42
@zhaofeng:zhaofeng.liZhaofeng Li

like

{ pkgs, inputs, ... }:
{
  imports = [ inputs.home-manager.nixosModules.default ];
}
05:57:49
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameit would be great if you could put that example here: https://colmena.cli.rs/unstable/reference/meta.html#specialargs05:57:59
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameit's not obvious to me what a "special arg" is, even if I'm reading that documentation05:58:13
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name also an example of how to use nodeSpecialArgs, although I don't think I personally need that 05:59:15
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @zhaofeng:zhaofeng.li
I usually just do meta.specialArgs = inputs so any config module can access all flake inputs
Wait oops, should be specialArgs = { inherit inputs; };
06:00:08
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name error: syntax error, unexpected INHERIT 06:00:37
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameoh wait need to wrap it in a set06:00:53
@zhaofeng:zhaofeng.liZhaofeng Li otherwise it will look like { pkgs, config, home-manager, ... } etc, but might be fine depending on what you like 06:00:58
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name although now it objects to specialArgs = { inherit inputs }; 06:01:16
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameer, forgot the closing ;06:01:30
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name inputs is undefined within the body of the outputs fn 06:01:54
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name does it need to be self.inputs? 06:02:05
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameor I guess I could just pass in the flake I care about in the outputs fn and then pass that as a special arg, I only need 2 or 3 flakes06:02:29
@zhaofeng:zhaofeng.liZhaofeng Li Ah, you do something like outputs = { self, nixpkgs, ... } @ inputs: { ... } 06:02:30
@zhaofeng:zhaofeng.liZhaofeng Li The @ inputs will bind the entire set as inputs 06:02:46
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name @ syntax works on either side of the fn input set, right? 06:02:52
@zhaofeng:zhaofeng.liZhaofeng Liyes06:02:57
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameI'm not sure why they needed to implmenet it both ways06:03:17
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameanyway that seems to work06:03:19
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameand that did update my flake.lock06:03:35
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namewith actually kind of a lot of stuff. I set up that flake I'm importing myself, like two days ago, I may not have done it correctly06:04:23
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namebut in any case I can deploy06:04:25
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namethanks for your help!06:04:29
22 Jun 2023
@h4636oh:matrix.org@h4636oh:matrix.org joined the room.02:47:16
@h4636oh:matrix.org@h4636oh:matrix.org left the room.03:37:55

Show newer messages


Back to Room ListRoom Version: 6