diff options
author | tv <tv@krebsco.de> | 2017-03-09 16:55:22 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-03-09 16:55:22 +0100 |
commit | f30a7dd975aaf5d9dbb2a2ba1186d7dd0c3e04fa (patch) | |
tree | 919a1182c0d8a3382a1e2d56704b342d9a3c4e27 /lass/2configs/logf.nix | |
parent | e4225f826cfba6faf9c582c0e043dc58864a56a5 (diff) | |
parent | 4ebc0e7adc7605e154916aefad47331761036abb (diff) |
Merge remote-tracking branch 'prism/lassulus'
Diffstat (limited to 'lass/2configs/logf.nix')
-rw-r--r-- | lass/2configs/logf.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lass/2configs/logf.nix b/lass/2configs/logf.nix new file mode 100644 index 000000000..3c4948db1 --- /dev/null +++ b/lass/2configs/logf.nix @@ -0,0 +1,21 @@ +{ config, pkgs, ... }: +with import <stockholm/lib>; +let + host-colors = { + mors = "131"; + prism = "95"; + uriel = "61"; + shodan = "51"; + icarus = "53"; + echelon = "197"; + helios = "199"; + cloudkrebs = "119"; + }; +in { + environment.systemPackages = [ + (pkgs.writeDashBin "logf" '' + export LOGF_HOST_COLORS=${pkgs.writeJSON "host-colors" host-colors} + ${pkgs.logf}/bin/logf ${concatMapStringsSep " " (name: "root@${name}") (attrNames config.lass.hosts)} + '') + ]; +} |