summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/retiolum.nix
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-10-27 22:39:01 +0200
committerlassulus <lass@aidsballs.de>2016-10-27 22:39:01 +0200
commit8512c0400f6a7d60360eba2eddf536d93c96ca9d (patch)
tree2524eee1296145e2706b7fd84e984dd13ae2f1c4 /krebs/3modules/retiolum.nix
parentb4b03d356174a34806d6029b844c59aca9d3840e (diff)
parent3abb88edf4bf04b60212bb4c94aadb52b4c9c9ef (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/retiolum.nix')
-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 {