nixos-mods/frontend: fix static compilation of hostname using figlet

secrix-issue25
Felix Stupp 1 year ago
parent df6339d8e0
commit 970c88e2f1
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -202,12 +202,14 @@ in
settings = {
banner =
let
hostname = config.networking.hostname;
figlit = lib.runCommandLocal "echo '${hostname}' | ${pkgs.figlit}/bin/figlit -f slant > $out";
hostName = config.networking.hostName;
figlet = pkgs.runCommandLocal "static-figlet-${hostName}" { } ''
echo '${hostName}' | ${pkgs.figlet}/bin/figlet -f slant > $out
'';
in
{
color = lib.mkDefault "red";
command = "cat ${figlit}";
command = "cat ${figlet}";
};
filesystems = {
root = "/";

Loading…
Cancel
Save