From 11595014eefe6f495511a7ed470bc08286469907 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 18 Jun 2017 14:08:43 +0200 Subject: pkgs: init krebszones --- krebs/5pkgs/simple/krebszones/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 krebs/5pkgs/simple/krebszones/default.nix (limited to 'krebs/5pkgs/simple/krebszones') 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 "$@" +'' -- cgit v1.2.3