Simplify system and home options

This commit is contained in:
Jimbo 2025-01-21 12:02:11 -05:00
parent ac22bc1849
commit 72ec65064d
20 changed files with 59 additions and 79 deletions

View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.system.server.enable {
services.ddclient = {
enable = true;
protocol = "cloudflare";
zone = "${config.domains.p2}";
usev6 = "";
username = "token";
passwordFile = "${pkgs.writeText "cloudflareapikey" config.secrets.flareApiKey}";
};
environment.persistence."/persist".directories = [
"/var/lib/private/ddclient"
];
};
}