summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-10-27 22:04:21 +0200
committertv <tv@krebsco.de>2016-10-27 22:04:21 +0200
commit3abb88edf4bf04b60212bb4c94aadb52b4c9c9ef (patch)
tree0aebda74d570bc41382fb6c1cf44446118e22f58 /krebs/3modules
parentb364aa96c9b162fc6e87dbfdb9a643551a285f7f (diff)
add krebs.tinc.*.hostsArchive
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/retiolum.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix
index fddaed9e3..ed99cc551 100644
--- a/krebs/3modules/retiolum.nix
+++ b/krebs/3modules/retiolum.nix
@@ -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 {