nixcfg/modules/nixos/system/locale/default.nix

18 lines
364 B
Nix
Raw Normal View History

2024-01-11 11:26:46 +01:00
{ options, config, pkgs, lib, ... }:
with lib;
with lib.plusultra;
let cfg = config.plusultra.system.locale;
in
{
options.plusultra.system.locale = with types; {
enable = mkBoolOpt false "Whether or not to manage locale settings.";
};
config = mkIf cfg.enable {
i18n.defaultLocale = "en_US.UTF-8";
console = { keyMap = mkForce "us"; };
};
}