l 2: add logf.nix
This commit is contained in:
parent
c6654de563
commit
9a50ea0143
@ -24,6 +24,7 @@ with import <stockholm/lib>;
|
|||||||
../2configs/krebs-pass.nix
|
../2configs/krebs-pass.nix
|
||||||
../2configs/repo-sync.nix
|
../2configs/repo-sync.nix
|
||||||
../2configs/ircd.nix
|
../2configs/ircd.nix
|
||||||
|
../2configs/logf.nix
|
||||||
{
|
{
|
||||||
#risk of rain port
|
#risk of rain port
|
||||||
krebs.iptables.tables.filter.INPUT.rules = [
|
krebs.iptables.tables.filter.INPUT.rules = [
|
||||||
@ -192,7 +193,6 @@ with import <stockholm/lib>;
|
|||||||
remmina
|
remmina
|
||||||
thunderbird
|
thunderbird
|
||||||
|
|
||||||
logf
|
|
||||||
iodine
|
iodine
|
||||||
|
|
||||||
macchanger
|
macchanger
|
||||||
|
21
lass/2configs/logf.nix
Normal file
21
lass/2configs/logf.nix
Normal 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)}
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user