summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-06-18 14:08:43 +0200
committerlassulus <lass@lassul.us>2017-06-18 14:08:43 +0200
commit11595014eefe6f495511a7ed470bc08286469907 (patch)
tree996fb978c32f13d6897155f1ea97ac995d685ed5
parent1ec7dabe6233ecec74a0b387f1e7851f55c72ad5 (diff)
pkgs: init krebszones
-rw-r--r--krebs/5pkgs/simple/krebszones/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/krebszones/default.nix b/krebs/5pkgs/simple/krebszones/default.nix
new file mode 100644
index 000000000..b54c95d88
--- /dev/null
+++ b/krebs/5pkgs/simple/krebszones/default.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+
+pkgs.writeDashBin "krebszones" ''
+ set -efu
+ export OVH_ZONE_CONFIG=$HOME/.secrets/krebs/ovh-zone.conf
+ case $* in
+ import)
+ set -- import /etc/zones/krebsco.de krebsco.de
+ echo "+ krebszones $*" >&2
+ ;;
+ esac
+ exec ${pkgs.ovh-zone}/bin/ovh-zone "$@"
+''