!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
31 Dec 2023
@whentze:matrix.orgWanja Hentzeso much for the "reproducible nix"16:49:39
1 Jan 2024
@julian:nekover.se@julian:nekover.se changed their display name from June 📞 5863 to June.18:27:57
2 Jan 2024
@polygon:gaykitty.lolpolygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️ joined the room.11:38:41
@polygon:gaykitty.lolpolygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️

Hey there, we're trying to get remote builds running from our x86_64 laptop with a aarch64 target server.
In our flake.nix, we have `colmena.rosa-luxemburg.deployment.buildOnTarget``set to true and we have tried the cli flag, but it errors out on evaluation.

[ERROR]   stderr)        error: a 'aarch64-linux' with features {} is required to build '/nix/store/xxv8lhqhj4niv37jcznp13wc3kl9dp39-channel-rust-1.70.0.toml.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
11:40:55
@polygon:gaykitty.lolpolygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️ *

Hey there, we're trying to get remote builds running from our x86_64 laptop with a aarch64 target server.
In our flake.nix, we have colmena.rosa-luxemburg.deployment.buildOnTarget set to true and we have tried the cli flag, but it errors out on evaluation.

[ERROR]   stderr)        error: a 'aarch64-linux' with features {} is required to build '/nix/store/xxv8lhqhj4niv37jcznp13wc3kl9dp39-channel-rust-1.70.0.toml.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}
11:41:20
@polygon:gaykitty.lolpolygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️ changed their display name from polygon (she/it) (DECT 7659) ⚡️ to polygon (she/it) ⚡️.11:42:07
@lab-cat:ag-link.xyz@lab-cat:ag-link.xyz changed their display name from lab-cat (DECT 3655) to lab-cat.15:55:44
@MartiniMoe:matrix.org@MartiniMoe:matrix.org joined the room.18:37:30
@MartiniMoe:matrix.org@MartiniMoe:matrix.orghey there 👋18:43:47
@MartiniMoe:matrix.org@MartiniMoe:matrix.org changed their display name from MartiniMoe to MartiniMoe (he/him).18:44:25
@MartiniMoe:matrix.org@MartiniMoe:matrix.orgI was trying to use colmena to deploy configs to my laptop and server, but it seems that I cant apply home-manager configurations with colmena, is that right? How are you handling this? Different flakes for laptop/desktop and servers? Not using home-manager? Something else? 😄18:48:44
3 Jan 2024
@tom:dragar.deTom joined the room.11:48:58
4 Jan 2024
@sylvie:karp.lolSylvie (she) ⚡️leaving for deploy-rs cause I much prefer to just use normal nixosSystem configs 😅08:01:36
@sylvie:karp.lolSylvie (she) ⚡️ left the room.08:01:41
@lab-cat:ag-link.xyz@lab-cat:ag-link.xyz left the room.22:54:14
8 Jan 2024
@polygon:gaykitty.lolpolygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️Redacted or Malformed Event13:00:46
9 Jan 2024
@andar1an:matrix.org@andar1an:matrix.org joined the room.20:30:20
@moira:raccoon.college@moira:raccoon.college changed their profile picture.21:13:52
10 Jan 2024
@tcurdt:matrix.orgtcurdt joined the room.16:04:16
11 Jan 2024
@andar1an:matrix.org@andar1an:matrix.org left the room.11:43:25
13 Jan 2024
@jannik:introverts.xyz@jannik:introverts.xyzHi, I want to use a package from a flake deep in my colmena configuration (using nested imports). Can I reference the input flake and its packages somehow?09:50:50
@ibizaman:matrix.orgibizaman
In reply to @jannik:introverts.xyz
Hi, I want to use a package from a flake deep in my colmena configuration (using nested imports). Can I reference the input flake and its packages somehow?
I’m pretty sure you can with: inputs.myinput1.inputs.myinput2
17:48:38
@jannik:introverts.xyz@jannik:introverts.xyz

Mhhh let me rephrase, the flake.nix has

{
  inputs = {
    # ...
    customPackage.url = "github:jeyemwey/customPackage";
  };
  outputs = { customPackage, ... }: {
    colmena.myHost = {pkgs, ...}: {
      imports = [ ./hosts/myHost ];
      
      services.nginx.virtualHosts."myPackage.example.com".root = "${customPackage.packages."${pkgs.hostPlatform.system}".default}";
    };
  }; 
}

and I can reference the customPackage in the flake outputs function just fine, but I'm not sure how I can reference it in the imports target in ./hosts/myHost/default.nix:

{...}: {
	services.nginx.enable = true;
	services.nginx.virtualHosts."myPackage.example.com" = {
		forceSSL = true;
		enableACME = true;
		
		## TODO: Find way to reference customPackage here
		# root = ...;
	};
}

If that is at all possible? Your answer seems to reference on the inputs of the customPackage which is not what I need here.

21:48:44
15 Jan 2024
@mariosangiorgio:matrix.org@mariosangiorgio:matrix.org joined the room.20:09:48
@mariosangiorgio:matrix.org@mariosangiorgio:matrix.org

Hello, I am trying to use Colmena to deploy to an LXC but I’m hitting a strange issue. It seems like I reach a state where Nix stops networking related units and that causes Colmena to hang


colmena apply
[INFO ] Using configuration: /home/mario/homelab/nix/hive.nix
[INFO ] Enumerating nodes...
[INFO ] Selected all 1 nodes.
         🕛 28s 1 running, 4 succeeded
stateful ✅ 3s Evaluated stateful
stateful ✅ 0s Built "/nix/store/fqfmzxwp1sh85paq4a0lzm8qcqlrh4q7-nixos-system
stateful ✅ 0s Pushed system closure
stateful 🕑 24s stopping the following units: network-local-commands.service, 
21:55:38
@mariosangiorgio:matrix.org@mariosangiorgio:matrix.orgAny recommendations on how to solve this?21:55:53
@mariosangiorgio:matrix.org@mariosangiorgio:matrix.orgOh, it seems that after stopping the services I get a new IP from DHCP. I added a reservation and it seems to help22:20:24
@mariosangiorgio:matrix.org@mariosangiorgio:matrix.orgNot sure if it’s the right solution but I’ll take it for now22:20:43
16 Jan 2024
@NobbZ:matrix.org@NobbZ:matrix.org left the room.19:30:39
17 Jan 2024
@sumner:nevarro.space@sumner:nevarro.space changed their profile picture.05:27:08

Show newer messages


Back to Room ListRoom Version: 6