stockholm/krebs/5pkgs/simple/krebszones/default.nix

14 lines
315 B
Nix
Raw Normal View History

2017-06-18 12:08:43 +00:00
{ pkgs, ... }:
pkgs.writeDashBin "krebszones" ''
set -efu
export OVH_ZONE_CONFIG=''${OVH_ZONE_CONFIG:-$HOME/.secrets/krebs/ovh-zone.conf}
2017-06-18 12:08:43 +00:00
case $* in
import)
set -- import /etc/zones/krebsco.de krebsco.de
echo "+ krebszones $*" >&2
;;
esac
exec ${pkgs.ovh-zone}/bin/ovh-zone "$@"
''