| 12 Mar 2025 |
dantefromhell | 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 | You have to specify a nixpkgs meta attribute that matches. Try passing just import nixpkgs instead of calling it. | 20:30:38 |
wantguns | i didnt get you, how do pass import nixpkgs as a meta attribute ? | 20:58:23 |
wantguns | i didnt get you, how do i pass import nixpkgs as a meta attribute ? | 20:58:29 |
| 13 Mar 2025 |
gmacon | 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 | 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 |
| Marcus joined the room. | 20:18:47 |
| 22 Mar 2025 |
| yorickvp joined the room. | 14:19:06 |
| 24 Mar 2025 |
| Nicolas changed their display name from Nicolas Lenz to Nicolas. | 13:41:04 |
| slay326 joined the room. | 15:50:56 |