add krebs.tinc.*.hostsArchive

This commit is contained in:
tv 2016-10-27 22:04:21 +02:00
parent b364aa96c9
commit 3abb88edf4

View file

@ -79,6 +79,15 @@ let
'';
};
hostsArchive = mkOption {
type = types.package;
default = pkgs.runCommand "retiolum-hosts.tar.bz2" {} ''
${pkgs.coreutils}/bin/ln -s ${tinc.config.hostsPackage} hosts
${pkgs.gnutar}/bin/tar -hcjf $out hosts
'';
readOnly = true;
};
hostsPackage = mkOption {
type = types.package;
default = pkgs.stdenv.mkDerivation {