!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

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


SenderMessageTime
1 Dec 2023
@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

Show newer messages


Back to Room ListRoom Version: 6