summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-09-11 14:37:26 +0200
committertv <tv@krebsco.de>2019-09-11 14:48:18 +0200
commit4c2184a0f1b4d80a62bad92a37cbc25835082052 (patch)
tree352390b15244a35044e4ee2ab35c09dafc90adb6 /krebs
parent8d5222c2f7f858d33588c3d3a9a105b9a6481025 (diff)
krebs.tinc.*.hostsArchive: fix file mode
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/tinc.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/krebs/3modules/tinc.nix b/krebs/3modules/tinc.nix
index 24eac7158..ed00d187c 100644
--- a/krebs/3modules/tinc.nix
+++ b/krebs/3modules/tinc.nix
@@ -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;
};