blob: 03414a745f4fb56b442466615549a3af701e903d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ config, pkgs, ... }:
with import <stockholm/lib>;
let
host-colors = {
mors = "131";
prism = "95";
uriel = "61";
shodan = "51";
icarus = "53";
echelon = "197";
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)}
'')
];
}
|