| 2 Mar 2024 |
| @ktemkin:katesiria.org changed their display name from ktemkin to Kate Temkin. | 18:07:13 |
dmoonfire | Anyone ever get stylix working with colmena? I'm having a little trouble with it and getting stuck at:
error: attribute 'system' missing
at /nix/store/d9m7m0f528qp4dq5j00gylnas0fb755y-source/flake.nix:93:38:
92| (import ./stylix/nixos inputs {
93| inherit (self.packages.${pkgs.system}) palette-generator;
| ^
94| base16 = base16.lib args;
Did you mean one of mystem, systemc, systemd, syntex or systemfd?
| 22:24:38 |
| dmoonfire changed their profile picture. | 22:25:32 |
| 3 Mar 2024 |
hexa | hah 😄 | 11:28:40 |
hexa | I know that one | 11:28:41 |
hexa | dmoonfire: do you have allowAliases disabled? | 11:28:53 |
hexa | e.g. in ~/.config.nixpkgs.config.nix | 11:29:14 |
dmoonfire | I have never heard of that file before. I'll do a `rg` to see. | 17:57:51 |
dmoonfire | Apparently, I had it in one of my checked-in files for the flake. nixpkgs.config.allowAliases = false; | 20:08:30 |
dmoonfire | hexa: That was it, thank you! 💙 | 20:25:33 |
| 6 Mar 2024 |
| @sammy:cherrykitten.dev joined the room. | 19:05:26 |
| 7 Mar 2024 |
| DrEtrange joined the room. | 14:09:36 |
| 10 Mar 2024 |
| Bonus joined the room. | 12:48:17 |
| 13 Mar 2024 |
| @ktemkin:katesiria.org changed their display name from Kate Temkin to [K]ate Temkin. | 02:56:13 |
| 14 Mar 2024 |
| @federicodschonborn:matrix.org left the room. | 02:04:46 |
| NixOS Moderation Botchanged room power levels. | 18:44:59 |
| 15 Mar 2024 |
pgibson | Does Colmena (or NixOS) support automatic rollback for failed deployments? I had a deploy hang during testing (possible the SSH connection was interrupted) and I had to reboot the server | 04:02:47 |
pgibson | SSH was down and I hadn't configured a password to log in via the console | 04:03:23 |
emily | no, see https://github.com/zhaofengli/colmena/issues/38 | 04:08:18 |
pgibson | Thanks | 04:09:39 |
@sammy:cherrykitten.dev | is there a way to build a VM from a colmena node config without duplicating the node config into an extra nixos configuration output (in a flake)? | 17:23:01 |
@sammy:cherrykitten.dev | so uh, an equivalent to nixos-rebuild build-vm | 17:23:54 |
| @grahamc:nixos.org joined the room. | 23:05:21 |
| 17 Mar 2024 |
tcurdt | I have my hosts setup like this:
nixosConfigurations = {
utm = import ./machines/utm.nix {};
I really don't get the example config:
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }: {
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [];
};
};
host-a = { name, nodes, pkgs, ... }: {
boot.isContainer = true;
time.timeZone = nodes.host-b.config.time.timeZone;
};
host-b = {
deployment = {
targetHost = "somehost.tld";
targetPort = 1234;
targetUser = "luser";
};
boot.isContainer = true;
time.timeZone = "America/Los_Angeles";
};
};
};
}
No nixosConfigurations?
| 00:35:19 |
hexa | colmena is a specific output that does not provide nixosConfigurations | 00:59:12 |
hexa | but you can create nixosConfigurations and transform them into colmena outputs | 00:59:25 |
hexa | e.g. https://github.com/zhaofengli/colmena/issues/60#issuecomment-1047199551 | 00:59:53 |
tcurdt | Urgh. That looks quite complicated. Hoping this would work feels naiv now
colema = {
meta = {};
utm = {
deployment = {
targetHost = "192.168.71.3";
targetUser = "root";
};
};
utm = self.nixosConfigurations.utm // {
deployment = {
targetHost = "192.168.71.3";
targetUser = "root";
};
};
};
| 01:13:12 |
tcurdt | * Urgh. That looks quite complicated. Hoping this would work feels naiv now
colema = {
meta = {};
utm = self.nixosConfigurations.utm // {
deployment = {
targetHost = "192.168.71.3";
targetUser = "root";
};
};
};
| 01:16:51 |
| 18 Mar 2024 |
dmoonfire | I struggle a lot translating those two concepts. Mostly I use a lot if Just file to handle what I couldn't figure out on my own.
And trying to get home-manager into colmena took me months to puzzle out. | 02:23:17 |