home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 7c2af21db7c004faa1f2b028d7d7f1a35721adc3
parent 569757f46e25bdb02561c25c08adc3cc60385ea5
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Wed, 21 Feb 2024 09:27:21 +0100

Add profiles.i18n back for console

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mflake.nix | 1+
Asystems/modules/profiles/i18n.nix | 24++++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/flake.nix b/flake.nix @@ -61,6 +61,7 @@ ./systems/modules/profiles/base.nix ./systems/modules/profiles/builder.nix ./systems/modules/profiles/dns.nix + ./systems/modules/profiles/i18n.nix ./systems/modules/profiles/home.nix ./systems/modules/profiles/redhat.nix ./systems/modules/profiles/wireguard.server.nix diff --git a/systems/modules/profiles/i18n.nix b/systems/modules/profiles/i18n.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: + +with lib; +let + cfg = config.profiles.i18n; +in +{ + options = { + profiles.i18n = { + enable = mkOption { + default = true; + description = "Enable i18n profile"; + type = types.bool; + }; + }; + }; + config = mkIf cfg.enable { + console.keyMap = "fr-bepo"; + console.font = "Lat2-Terminus16"; + i18n = { + defaultLocale = "en_US.UTF-8"; + }; + }; +}