l 2: add logf.nix

This commit is contained in:
lassulus 2017-03-08 00:58:09 +01:00
parent c6654de563
commit 9a50ea0143
2 changed files with 22 additions and 1 deletions

View File

@ -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

21
lass/2configs/logf.nix Normal file
View File

@ -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)}
'')
];
}