os-config: make default console config

This commit is contained in:
2024-04-06 18:28:17 +02:00
parent 778fcb1b9d
commit b014b62c60
3 changed files with 25 additions and 15 deletions
+5 -3
View File
@@ -11,9 +11,11 @@ in
enable = true;
enableGlobalCompInit=false;
interactiveShellInit = ''
if [[ $(${pkgs.coreutils}/bin/echo $TTY | ${pkgs.gnugrep}/bin/grep "/dev/tty") ]] && [[ "$TERM" == "linux" ]]; then
setfont lat2-16 -m 8859-2
fi
${ lib.optionalString (config.console.font != null)
''if [[ $(${pkgs.coreutils}/bin/echo $TTY | ${pkgs.gnugrep}/bin/grep "/dev/tty") ]] && [[ "$TERM" == "linux" ]]; then
setfont ${config.console.font}
fi''
}
if [[ ''${__MATERUS_HM_ZSH:-0} == 0 ]]; then
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc