!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
12 Mar 2025
@dantefromhell:matrix.orgdantefromhell
In reply to @wantguns:matrix.org
if there is an example flake i can follow which uses the output / config of a darwinConfiguration as colmena's host's options, that would help a lot
my best way to finding code examples is github search 🥴 you can use lang: nix + whatever snippet you know needs to show up in your code.
12:50:02
@gmacon:matrix.orggmacon You have to specify a nixpkgs meta attribute that matches. Try passing just import nixpkgs instead of calling it. 20:30:38
@wantguns:matrix.orgwantguns i didnt get you, how do pass import nixpkgs as a meta attribute ? 20:58:23
@wantguns:matrix.orgwantguns i didnt get you, how do i pass import nixpkgs as a meta attribute ? 20:58:29
13 Mar 2025
@gmacon:matrix.orggmacon

In your flake.nix on line 43 you have

nixpkgs = import nixpkgs { system = "x86_64-linux"; };

I'm suggesting you instead write

nixpkgs = import nixpkgs;
12:44:23
14 Mar 2025
@wantguns:matrix.orgwantguns okay, i tried that but it still gave me the same error, i have now moved on to using deploy-rs, and deploy based on activations:
# ...
      deploy = {
        nodes = builtins.mapAttrs (name: hostConfig:
          let 
            isDarwin = hostConfig.platform == "darwin";
            activationPath = if isDarwin 
              then deploy-rs.lib.${hostConfig.system}.activate.darwin self.darwinConfigurations.${name}
              else deploy-rs.lib.${hostConfig.system}.activate.nixos self.nixosConfigurations.${name};
          in {
            hostname = hostConfig.hostname;
            profiles.system = {
              user = if isDarwin then hostConfig.username else "root";
              path = activationPath;
            };
          }
        ) hosts;
      };
# ...
10:14:42
21 Mar 2025
@marcusramberg:matrix.orgMarcus joined the room.20:18:47
22 Mar 2025
@yorickvp:matrix.orgyorickvp joined the room.14:19:06
24 Mar 2025
@eisfunke:eisfunke.comNicolas changed their display name from Nicolas Lenz to Nicolas.13:41:04
@slay326:matrix.orgslay326 joined the room.15:50:56

Show newer messages


Back to Room ListRoom Version: 6