ddclient
This commit is contained in:
parent
b2850711bd
commit
86b4cddbf4
|
@ -66,7 +66,7 @@
|
|||
postgresql.enable = true;
|
||||
redis.enable = true;
|
||||
fail2ban.enable = true;
|
||||
ddns.enable = true;
|
||||
ddclient.enable = true;
|
||||
services = {
|
||||
forgejo.enable = true;
|
||||
headscale.enable = true;
|
||||
|
|
14
modules/server/ddclient.nix
Normal file
14
modules/server/ddclient.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ in {
|
|||
./media
|
||||
./fedi
|
||||
./ddns.nix
|
||||
./ddclient.nix
|
||||
];
|
||||
|
||||
options.void.server = { isServer = mkEnableOption false; };
|
||||
|
|
Loading…
Reference in a new issue