diff options
author | tv <tv@krebsco.de> | 2016-10-27 22:04:21 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-10-27 22:04:21 +0200 |
commit | 3abb88edf4bf04b60212bb4c94aadb52b4c9c9ef (patch) | |
tree | 0aebda74d570bc41382fb6c1cf44446118e22f58 /krebs | |
parent | b364aa96c9b162fc6e87dbfdb9a643551a285f7f (diff) |
add krebs.tinc.*.hostsArchive
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/retiolum.nix | 9 |
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 { |