Skip to content

Commit 907ec33

Browse files
committed
motd: change greeting color from red to cyan
the ocf color scheme includes california blue and gold, and cold colors like snow and ice. bright cyan is a good choice that respects the ocf color scheme and is widely compatible on terminals. it also happens to fit well with the nix color scheme too
1 parent 10c32a4 commit 907ec33

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/motd.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ let
1212
ansi-resetfg = "${ansi-esc}[39m";
1313
ansi-bold = "${ansi-esc}[1m";
1414
ansi-dim = "${ansi-esc}[2m";
15-
ansi-red = "${ansi-esc}[31m";
15+
ansi-cyan = "${ansi-esc}[96m";
1616

17-
greeting = "${ansi-reset}${ansi-bold}Hi, I am ${ansi-red}${config.networking.hostName}${ansi-resetfg}, a ${ansi-red}${
17+
greeting = "${ansi-reset}${ansi-bold}Hi, I am ${ansi-cyan}${config.networking.hostName}${ansi-resetfg}, a ${ansi-cyan}${
1818
builtins.concatStringsSep ", " config.deployment.tags or [ ]
19-
}${ansi-resetfg} at ${ansi-red}169.229.226.${builtins.toString config.ocf.network.lastOctet}${ansi-reset}.\n";
19+
}${ansi-resetfg} at ${ansi-cyan}169.229.226.${builtins.toString config.ocf.network.lastOctet}${ansi-reset}.\n";
2020
version = "${ansi-reset}${ansi-dim}${config.system.nixos.label}${ansi-reset}\n";
2121
motd = cfg.description + "\n";
2222
ssh-motd = pkgs.writeText "ssh-motd" "${greeting}\n${motd}";

0 commit comments

Comments
 (0)