summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-03-08 00:58:09 +0100
committerlassulus <lass@lassul.us>2017-03-08 00:58:09 +0100
commit9a50ea0143161746f9be9dc99abb87c384b9cc27 (patch)
tree8b9169e8e1db2d7d58a6a471b92962939ebaae5a /lass/2configs
parentc6654de563efb4e4afcb53a6760ab6767693389f (diff)
l 2: add logf.nix
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/logf.nix21
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)}
+ '')
+ ];
+}