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

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

View file

@ -1,8 +1,9 @@
{ lib, ... }:
{
options.system.webserver.enable = lib.mkEnableOption "Enable nginx related services";
imports = [
./acme
./ddclient
./nginx
];
}