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 { hostsArchive = mkOption {
type = types.package; type = types.package;
default = pkgs.runCommand "retiolum-hosts.tar.bz2" {} '' default = pkgs.runCommand "retiolum-hosts.tar.bz2" {} ''
${pkgs.coreutils}/bin/ln -s ${tinc.config.hostsPackage} hosts cp \
${pkgs.gnutar}/bin/tar -hcjf $out hosts --no-preserve=mode \
--recursive \
${tinc.config.hostsPackage} \
hosts
${pkgs.gnutar}/bin/tar -cjf $out hosts
''; '';
readOnly = true; readOnly = true;
}; };