Add nsd.conf, document deployment
This commit is contained in:
@@ -28,10 +28,19 @@
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
rec {
|
||||
zoneConfig = pkgs.callPackage ./zoneConfig.nix {
|
||||
zoneFiles = pkgs.callPackage ./zoneConfig.nix {
|
||||
inherit dns;
|
||||
};
|
||||
default = zoneConfig;
|
||||
|
||||
nsdConfig = pkgs.callPackage ./nsd.conf.nix { inherit pkgs; };
|
||||
|
||||
default = pkgs.runCommand "pvv-dns" { } ''
|
||||
mkdir -p $out/zones
|
||||
mkdir -p $out/etc/nsd
|
||||
|
||||
cp -r ${zoneFiles}/* $out/zones/
|
||||
cp -r ${nsdConfig} $out/etc/nsd/nsd.conf
|
||||
'';
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user