summaryrefslogtreecommitdiffstats
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
parentc6654de563efb4e4afcb53a6760ab6767693389f (diff)
l 2: add logf.nix
-rw-r--r--lass/1systems/mors.nix2
-rw-r--r--lass/2configs/logf.nix21
2 files changed, 22 insertions, 1 deletions
diff --git a/lass/1systems/mors.nix b/lass/1systems/mors.nix
index bffb08ad..223e16ba 100644
--- a/lass/1systems/mors.nix
+++ b/lass/1systems/mors.nix
@@ -24,6 +24,7 @@ with import <stockholm/lib>;
../2configs/krebs-pass.nix
../2configs/repo-sync.nix
../2configs/ircd.nix
+ ../2configs/logf.nix
{
#risk of rain port
krebs.iptables.tables.filter.INPUT.rules = [
@@ -192,7 +193,6 @@ with import <stockholm/lib>;
remmina
thunderbird
- logf
iodine
macchanger
diff --git a/lass/2configs/logf.nix b/lass/2configs/logf.nix
new file mode 100644
index 00000000..3c4948db
--- /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)}
+ '')
+ ];
+}