| 17 Nov 2023 |
| @yuri:nekover.se changed their display name from yuri to fi (she/her). | 01:44:15 |
@jannik:introverts.xyz | Hi, I'm pretty new to Colmena, and I want to use it to manage multiple hosts with different versions of nixpkgs. I have defined two nixpkgs urls in my flake's inputs, and can reference them in outputs.colmena.meta.nixpkgs. But I can't find a way to define this per-host. | 10:52:51 |
| 18 Nov 2023 |
| danielsidhion joined the room. | 04:05:31 |
| danielsidhion changed their display name from Daniel Sidhion to danielsidhion. | 04:08:29 |
| ari ❄ changed their display name from ar to ari ❄. | 16:09:05 |
| 19 Nov 2023 |
| ZXGU joined the room. | 11:01:28 |
| 20 Nov 2023 |
ajs124 | If I evaluate a system config and then evaluate it again right after, without any changes to its inputs (including self), shouldn't that benefit from flake eval caching? | 18:08:05 |
| 23 Nov 2023 |
hexa | hm, can I use nix-output-monitor with colmena? | 11:59:31 |
ajs124 | there's an issue for that: https://github.com/zhaofengli/colmena/issues/129 | 12:24:38 |
| 25 Nov 2023 |
| @10leej:matrix.org joined the room. | 15:56:32 |
| 30 Nov 2023 |
| @v:meowy.tech left the room. | 22:47:06 |
| 1 Dec 2023 |
| mihtig joined the room. | 09:40:53 |
mihtig | Hi all. Anyone here used nixos-infect on a host and colmena to deploy their nix config? | 09:41:34 |
mihtig | currently I get a "nix-daemon: command not found" error which seems to stem from the ssh command failing to find nix-daemon, but it's hard to track it down and I've verified that nix profile (nix.sh in ~/.nix-profile) is specified in the various .profile/.bashrc combinations | 09:42:29 |
mihtig | in fact when I ssh <host> "nix-daemon --help" I get the same error - presumably this isn't colmena's fault... | 09:45:06 |
Zhaofeng Li | Yeah, on non-NixOS hosts the Nix binaries aren't in the PATH set up by sshd/pam. It's a long-standing issue: https://github.com/NixOS/nix/issues/1078 | 17:42:10 |
Chinchilla Optional | I'm getting Failed to upload keys: I/O Error: No such file or directory (os error 2) when I try to upload keys. The key block is:
deployment = {
keys."myservice.secret" = {
keyFile = /full/path/to/secrets/myservice.secret;
uploadAt = "pre-activation";
};
};
Am I doing something obviously stupid? File is in the ./secrets dir by the flake, and owned by the same user
| 22:21:06 |
Chinchilla Optional | Redacted or Malformed Event | 22:21:20 |
Chinchilla Optional | Redacted or Malformed Event | 22:21:41 |
Chinchilla Optional | okay so remote system has that file uploaded to /run/keys/myservice.secret but with no contents in the file | 22:22:39 |
Chinchilla Optional | odd | 22:22:53 |
mihtig | In reply to @zhaofeng:zhaofeng.li Yeah, on non-NixOS hosts the Nix binaries aren't in the PATH set up by sshd/pam. It's a long-standing issue: https://github.com/NixOS/nix/issues/1078 Thank you I wasn’t aware. | 22:53:37 |
| 2 Dec 2023 |
Chinchilla Optional | and... it works now for some reason. Didn't change anything. Great. | 00:31:18 |
| @srid:matrix.org joined the room. | 16:03:02 |
| NixOS Moderation Bot banned @srid:matrix.org (<no reason supplied>). | 16:03:03 |
| @sivertism:matrix.org joined the room. | 16:54:22 |
@sivertism:matrix.org | Hi! I'm new to NixOS, but want to try out Colmena as a means to set up some computers in my home. One of them is a Microsoft Surface Pro 3, which needs <nixos-hardware/microsoft/surface-pro/3> to function properly. However, I'm struggling to use that with Colmena.
What I have now is something like this:
flake.nix machines
- surface-configuration.nix
- surface-hardware-configuration.nix
In flake.nix:
inputs = { nixpkg.s.url = ... };
| 17:27:44 |
@sivertism:matrix.org | In reply to @sivertism:matrix.org
Hi! I'm new to NixOS, but want to try out Colmena as a means to set up some computers in my home. One of them is a Microsoft Surface Pro 3, which needs <nixos-hardware/microsoft/surface-pro/3> to function properly. However, I'm struggling to use that with Colmena.
What I have now is something like this:
flake.nix machines
- surface-configuration.nix
- surface-hardware-configuration.nix
In flake.nix:
inputs = { nixpkg.s.url = ... };
hit enter too soon... hold on | 17:28:12 |
@sivertism:matrix.org | * Hi! I'm new to NixOS, but want to try out Colmena as a means to set up some computers in my home. One of them is a Microsoft Surface Pro 3, which needs <nixos-hardware/microsoft/surface-pro/3> to function properly. However, I'm struggling to use that with Colmena.
What I have now is something like this:
flake.nix machines
- surface-configuration.nix
- surface-hardware-configuration.nix
In flake.nix:
inputs = { nixpkg.s.url = ... };
outputs = {nixpkgs, ...} : {
colmena = {
meta = // default from examples
surface = {name, nodes, pkgs, ... } : {
deployment = { targetHost = name; targetUser="nixos"; };
networking.hostName = name;
imports = [
<nixos-hardware/microsoft/surface-pro/3>
./machines/surface-configuration.nix
]
};
};
And machines/surface-configuration.nix is the /etc/nixos/configuration.nix file copied from the surface after a fresh install. It, in turn, imports machines/surface-hardware-configuration.nix, which I've also left as default.
| 17:34:05 |
@sivertism:matrix.org | * Hi! I'm new to NixOS, but want to try out Colmena as a means to set up some computers in my home. One of them is a Microsoft Surface Pro 3, which needs <nixos-hardware/microsoft/surface-pro/3> to function properly. However, I'm struggling to use that with Colmena.
What I have now is something like this:
flake.nix machines
- surface-configuration.nix
- surface-hardware-configuration.nix
In flake.nix:
inputs = { nixpkg.s.url = ... };
outputs = {nixpkgs, ...} : {
colmena = {
meta = // default from examples
surface = {name, nodes, pkgs, ... } : {
deployment = { targetHost = name; targetUser="nixos"; };
networking.hostName = name;
imports = [
<nixos-hardware/microsoft/surface-pro/3>
./machines/surface-configuration.nix
]
};
};
And machines/surface-configuration.nix is the /etc/nixos/configuration.nix file copied from the surface after a fresh install. It, in turn, imports machines/surface-hardware-configuration.nix, which I've also left as default.
From this, I first get an error error: cannot look up '<nixos-hardware/microsoft/surface-pro/3>' in pure evaluation mode (use '--impure' to override), so I use --impure, but then get error: file 'nixos-hardware/microsoft/surface-pro/3' was not found in the Nix search path (add it using $NIX_PATH or -I. I should probably add it the proper way with a url to nixos-hardware as shown in the nixos-hardware section on flakes, but I'm not sure where to stick in those modules ref: (nixos-hardware#flakes)[https://github.com/NixOS/nixos-hardware#using-nix-flakes-support].
Does anyone know how I should proceed?
| 17:39:11 |