Begin Dendritic rewrite

This commit is contained in:
2026-03-06 16:24:53 -06:00
parent f3a90a0fe8
commit c1684a80f7
99 changed files with 4375 additions and 4643 deletions

View File

@@ -1,40 +1,44 @@
{ config, lib, pkgs, ... }: {
{ ... }: {
options.sysconfig.services.dynamicDNS.enable = with lib; mkOption {
flake.nixosModules.default = { config, lib, pkgs, ... }: {
type = with types; bool;
default = false;
};
options.sysconfig.services.dynamicDNS.enable = with lib; mkOption {
config = lib.mkIf config.sysconfig.services.dynamicDNS.enable {
systemd.timers.dynamicDNS = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnBootSec = "5m";
OnUnitActiveSec = "1h";
Unit = "dynamicDNS.service";
};
type = with types; bool;
default = false;
};
systemd.services.dynamicDNS = {
config = lib.mkIf config.sysconfig.services.dynamicDNS.enable {
name = "dynamicDNS.service";
systemd.timers.dynamicDNS = {
serviceConfig = {
wantedBy = [ "timers.target" ];
Type = "oneshot";
timerConfig = {
LoadCredential = [ "cloudflare-api-key" ];
OnBootSec = "5m";
OnUnitActiveSec = "1h";
Unit = "dynamicDNS.service";
};
};
script = '''';
systemd.services.dynamicDNS = {
name = "dynamicDNS.service";
serviceConfig = {
Type = "oneshot";
LoadCredential = [ "cloudflare-api-key" ];
};
script = '''';
};
};
};
}