Browse Source

add DO dyndns for home.nora.codes

main
Leonora Tindall 1 year ago
parent
commit
de7dc3f821
Signed by: nora GPG Key ID: 7A8B52EC67E09AAF
  1. 18
      hosts/felonyspork/configuration.nix

18
hosts/felonyspork/configuration.nix

@ -33,6 +33,24 @@
fsType = "nfs";
};
# Enable DigitalOcean dynamic DNS
systemd.services.do_dyndns = {
enable = true;
wantedBy=["multi-user.target"];
serviceConfig.Type = "simple";
path = with pkgs; [ bash curl coreutils jq ];
environment = {
DIGITALOCEAN_TOKEN_FILE = "/home/nora/do_dyndnspassword";
DOMAIN = "nora.codes";
NAME = "home";
SLEEP_INTERVAL = "1800";
REMOVE_DUPLICATES = "true";
};
script = ''
bash /home/nora/do_dyndns.sh
'';
};
services.syncthing.dataDir = "/mnt/moria/felonyspork/Sync";
# Set your time zone.

Loading…
Cancel
Save