krebs.tinc.*.hostsArchive: fix file mode

This commit is contained in:
tv 2019-09-11 14:37:26 +02:00
parent 8d5222c2f7
commit 4c2184a0f1

View File

@ -110,8 +110,12 @@ 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
cp \
--no-preserve=mode \
--recursive \
${tinc.config.hostsPackage} \
hosts
${pkgs.gnutar}/bin/tar -cjf $out hosts
'';
readOnly = true;
};