| 15 Jul 2022 |
@trofi:matrix.org | Thank you! Filed https://github.com/NixOS/hydra/issues/1238 | 21:31:59 |
| 18 Jul 2022 |
| toraritte changed their display name from metello to toraritte. | 09:00:20 |
| 21 Jul 2022 |
| polygon_ joined the room. | 14:15:17 |
polygon_ | Hi | 14:15:39 |
polygon_ | I have a Hydra running and now want to add a nix-serve instance to use it as a binary substituter. I've been following https://nixos.wiki/wiki/Binary_Cache for the most part. However, I have some issues with configuring the private key for nix-serve. I have
services.nix-serve.secretKeyFile = "/var/cache-priv-key.pem"
in my config and doing "systemctl cat nix-serve" also shows:
LoadCredentials=NIX_SECRET_KEY_FILE:/var/cache/cache-priv-key.pem
But when I try to obtain a narinfo, automatic signing fails with the following error:
cannot open file '/run/credentials/nix-serve.service/NIX_SECRET_KEY_FILE': permission denied
Is this a known issue? I am running on 22.05 | 14:19:05 |
polygon_ | Fixed it by removing the secretKeyFile line and adding systemd.services.nix-serve.serviceConfig.Environment = "NIX_SECRET_KEY_FILE=/var/cache-priv-key.pem" | 14:47:18 |