summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-09-11 14:57:39 +0200
committerlassulus <lassulus@lassul.us>2019-09-11 14:57:39 +0200
commit8cb8de31d0a3b1bcb6eb91d0c23740b8c14d29bd (patch)
treea54b0e64d3871aae39169b54be8621c81fd71a27 /krebs/3modules
parent20e38840fed74e5a71342c1ba335a6bf0ad5080a (diff)
parent4c2184a0f1b4d80a62bad92a37cbc25835082052 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/3modules')
-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;
};