Scripts for automatically manipulating DNS records.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.nix 700B

123456789101112131415161718192021222324252627282930313233
  1. { pkgs ? import <nixpkgs> { }
  2. }:
  3. with pkgs.lib;
  4. pkgs.stdenvNoCC.mkDerivation rec {
  5. name = "dns-scripts";
  6. meta.description = "Peter's DNS scripts";
  7. phases = [ "installPhase" "fixupPhase" ];
  8. src = ./.;
  9. buildInputs = with pkgs; [
  10. coreutils
  11. curl
  12. gawk
  13. jq
  14. net_snmp
  15. nettools
  16. openssl
  17. iproute
  18. ];
  19. installPhase = ''
  20. mkdir -p $out/bin
  21. export extra_path="${concatMapStringsSep ":" (x: "${x}/bin") buildInputs}"
  22. substituteAll ${./bin/update-dyndns.sh} $out/bin/update-dyndns.sh
  23. substituteAll ${./bin/dnsme-letsencrypt.sh} $out/bin/dnsme-letsencrypt.sh
  24. chmod 0555 $out/bin/update-dyndns.sh
  25. chmod 0555 $out/bin/dnsme-letsencrypt.sh
  26. '';
  27. }