diff options
Diffstat (limited to 'krebs/5pkgs/simple/krebszones/default.nix')
-rw-r--r-- | krebs/5pkgs/simple/krebszones/default.nix | 13 |
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 "$@" +'' |