14 lines
285 B
Nix
14 lines
285 B
Nix
# Generates Syncthing TLS certs for managed hosts that don't have one.
|
|
{
|
|
pkgs,
|
|
agenix-pkg,
|
|
}:
|
|
pkgs.writeShellApplication {
|
|
name = "gen-syncthing-cert";
|
|
runtimeInputs = [
|
|
pkgs.jq
|
|
pkgs.syncthing
|
|
agenix-pkg
|
|
];
|
|
text = builtins.readFile ../bin/gen-syncthing-cert;
|
|
}
|