mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
20 lines
549 B
Nix
20 lines
549 B
Nix
let
|
|
signingKeyPath = "/run/secrets/harmonia/signing-key";
|
|
in
|
|
{
|
|
services.harmonia.cache = {
|
|
enable = true;
|
|
signKeyPaths = [ signingKeyPath ];
|
|
|
|
settings = {
|
|
bind = "0.0.0.0:5000";
|
|
priority = 30;
|
|
};
|
|
};
|
|
|
|
# Keep activation usable while the host-specific SOPS secret is bootstrapped.
|
|
# Once the secret exists, starting the socket also starts Harmonia on demand.
|
|
systemd.sockets.harmonia.unitConfig.ConditionPathExists = signingKeyPath;
|
|
systemd.services.harmonia.unitConfig.ConditionPathExists = signingKeyPath;
|
|
}
|