os-config: make default console config
This commit is contained in:
parent
778fcb1b9d
commit
b014b62c60
|
@ -24,16 +24,8 @@
|
||||||
services.gvfs.enable = true;
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
time.timeZone = "Europe/Warsaw";
|
|
||||||
i18n.defaultLocale = "pl_PL.UTF-8";
|
|
||||||
services.xserver.xkb.layout = "pl";
|
services.xserver.xkb.layout = "pl";
|
||||||
console = {
|
|
||||||
enable = true;
|
|
||||||
earlySetup = true;
|
|
||||||
font = "${pkgs.kbd}/share/consolefonts/lat2-16.psfu.gz";
|
|
||||||
keyMap = "pl";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
|
|
|
@ -1,13 +1,29 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
|
|
||||||
./shell
|
./shell
|
||||||
./games
|
./games
|
||||||
./desktop
|
./desktop
|
||||||
];
|
];
|
||||||
|
|
||||||
|
time.timeZone = lib.mkDefault "Europe/Warsaw";
|
||||||
|
i18n.defaultLocale = lib.mkDefault "pl_PL.UTF-8";
|
||||||
|
|
||||||
|
console = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
earlySetup = lib.mkDefault true;
|
||||||
|
font = lib.mkDefault "LatArCyrHeb-16";
|
||||||
|
keyMap = lib.mkDefault "pl";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.tmux = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
clock24 = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
environment.systemPackages = lib.mkIf config.programs.tmux.enable [ pkgs.tmux.terminfo ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,11 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGlobalCompInit=false;
|
enableGlobalCompInit=false;
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
if [[ $(${pkgs.coreutils}/bin/echo $TTY | ${pkgs.gnugrep}/bin/grep "/dev/tty") ]] && [[ "$TERM" == "linux" ]]; then
|
${ lib.optionalString (config.console.font != null)
|
||||||
setfont lat2-16 -m 8859-2
|
''if [[ $(${pkgs.coreutils}/bin/echo $TTY | ${pkgs.gnugrep}/bin/grep "/dev/tty") ]] && [[ "$TERM" == "linux" ]]; then
|
||||||
fi
|
setfont ${config.console.font}
|
||||||
|
fi''
|
||||||
|
}
|
||||||
|
|
||||||
if [[ ''${__MATERUS_HM_ZSH:-0} == 0 ]]; then
|
if [[ ''${__MATERUS_HM_ZSH:-0} == 0 ]]; then
|
||||||
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
source ${pkgs.grml-zsh-config}/etc/zsh/zshrc
|
||||||
|
|
Loading…
Reference in New Issue