This commit is contained in:
Sakooooo 2025-01-02 13:08:10 +04:00
parent b2850711bd
commit 86b4cddbf4
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 16 additions and 1 deletions

View file

@ -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;

View 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";
};
};
}

View file

@ -12,6 +12,7 @@ in {
./media
./fedi
./ddns.nix
./ddclient.nix
];
options.void.server = { isServer = mkEnableOption false; };