{ config, pkgs, lib, user, host, ... }: { imports = if host == "NxACE" then [ ] else []; config = lib.mkIf (host == "NxACE") { # security.acme = { # acceptTerms = true; # defaults.email = "acme@nx2.site"; # certs."nx2.site" = { # dnsProvider = "namecheap"; # environmentFile = ../secrets/nx2site/namecheap-creds.env; # }; # }; # services.nginx = { # enable = true; # }; systemd = { timers."namecheap-dynamic-dns" = { wantedBy = [ "timers.target" ]; timerConfig = { OnBootSec = "2m"; OnUnitActiveSec = "10m"; Unit = "namecheap-dynamic-dns.service"; }; }; services."namecheap-dynamic-dns" = { script = '' /home/nx2/nx2site/domain/update-namecheap.sh ''; serviceConfig = { Type = "oneshot"; User = "nx2"; }; }; }; }; }