!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
25 Nov 2023
@10leej:matrix.org@10leej:matrix.org joined the room.15:56:32
30 Nov 2023
@v:meowy.tech@v:meowy.tech left the room.22:47:06
1 Dec 2023
@mihtig:matrix.orgmihtig joined the room.09:40:53
@mihtig:matrix.orgmihtigHi all. Anyone here used nixos-infect on a host and colmena to deploy their nix config?09:41:34
@mihtig:matrix.orgmihtigcurrently 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 combinations09:42:29
@mihtig:matrix.orgmihtig 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:zhaofeng.liZhaofeng LiYeah, 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/107817:42:10
@cw:kernelpanic.cafeChinchilla 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
@cw:kernelpanic.cafeChinchilla OptionalRedacted or Malformed Event22:21:20
@cw:kernelpanic.cafeChinchilla OptionalRedacted or Malformed Event22:21:41
@cw:kernelpanic.cafeChinchilla Optional okay so remote system has that file uploaded to /run/keys/myservice.secret but with no contents in the file 22:22:39
@cw:kernelpanic.cafeChinchilla Optionalodd22:22:53
@mihtig:matrix.orgmihtig
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
@cw:kernelpanic.cafeChinchilla Optionaland... it works now for some reason. Didn't change anything. Great.00:31:18
@srid:matrix.org@srid:matrix.org joined the room.16:03:02
@mjolnir:nixos.orgNixOS Moderation Bot banned @srid:matrix.org@srid:matrix.org (<no reason supplied>).16:03:03
@sivertism:matrix.org@sivertism:matrix.org joined the room.16:54:22

Show newer messages


Back to Room ListRoom Version: 6