pkgs: init krebszones
This commit is contained in:
parent
1ec7dabe62
commit
11595014ee
13
krebs/5pkgs/simple/krebszones/default.nix
Normal file
13
krebs/5pkgs/simple/krebszones/default.nix
Normal file
@ -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 "$@"
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user