blob: df597936186a89561985cbb277953b48a422cd72 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ ... }: {
age.secrets.ddns-updater = {
file = ../../../secrets/ddns-updater.age;
owner = "root";
group = "root";
mode = "600";
};
# https://github.com/NixOS/nixpkgs/blob/e028379cfb9d92e49120e46045042998dfed87d0/nixos/modules/services/networking/ddns-updater.nix#
services.ddns-updater = {
enable = true;
environment = {
RESOLVER_ADDRESS = "8.8.8.8:53";
CONFIG_FILEPATH = "%d/config.json";
};
};
# https://systemd.io/CREDENTIALS/
systemd.services.ddns-updater.serviceConfig.LoadCredential =
"config.json:/run/agenix/ddns-updater";
}
|