global/locale: init, refactored from modules/locale
This commit is contained in:
parent
1645a8a3a8
commit
421d490af1
3 changed files with 36 additions and 51 deletions
23
modules/global/locale.nix
Normal file
23
modules/global/locale.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ common, ... }:
|
||||
let
|
||||
cfg = common.locale;
|
||||
in
|
||||
{
|
||||
common.locale = {
|
||||
keymap = "us";
|
||||
locale = "en_US.UTF-8";
|
||||
timezone = "America/New_York";
|
||||
};
|
||||
|
||||
console.keyMap = cfg.keymap;
|
||||
services.xserver.xkb = {
|
||||
layout = cfg.keymap;
|
||||
options = "compose:ralt";
|
||||
};
|
||||
|
||||
services.libinput.enable = true;
|
||||
|
||||
i18n.defaultLocale = cfg.locale;
|
||||
|
||||
time.timeZone = cfg.timezone;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue