15 lines
292 B
Nix
15 lines
292 B
Nix
{ config, lib, pkgs, ... }:
|
|
with lib;
|
|
let cfg = config.void.server.ddclient;
|
|
in {
|
|
options.void.server.ddclient = { enable = mkEnableOption false; };
|
|
|
|
config = mkIf cfg.enable {
|
|
services.ddclient = {
|
|
enable = true;
|
|
configFile = "/srv/secrets/ddclient.conf";
|
|
};
|
|
};
|
|
}
|
|
|