Skip to content

Commit

Permalink
nixos/desktop/locale: move from nixos/locale
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Sep 20, 2023
1 parent fecde9c commit a80f2f8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 24 deletions.
1 change: 1 addition & 0 deletions nixos/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{
imports = [
./greetd.nix
./locale.nix
./plymouth.nix
./tailscale.nix
./wayland.nix
Expand Down
29 changes: 29 additions & 0 deletions nixos/desktop/locale.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ config, lib, ... }:

{
options.nixos.desktop.locale.enable = lib.mkEnableOption "locale config" // {
default = config.nixos.desktop.enable;
};

config = lib.mkIf config.nixos.desktop.locale.enable {
# Select internationalisation properties.
i18n = {
inputMethod.enabled = "fcitx5";
defaultLocale = lib.mkDefault "en_IE.UTF-8";
extraLocaleSettings = {
LC_CTYPE = lib.mkDefault "pt_BR.UTF-8"; # Fix ç in us-intl.
};
};

# Set X11 keyboard layout.
services.xserver = {
layout = lib.mkDefault "us";
xkbVariant = lib.mkDefault "intl";
# Remap Caps Lock to Esc, and use Super+Space to change layouts
xkbOptions = lib.mkDefault "caps:escape,grp:win_space_toggle";
};

# Set your time zone.
time.timeZone = lib.mkDefault "America/Sao_Paulo";
};
}
23 changes: 0 additions & 23 deletions nixos/locale.nix

This file was deleted.

1 change: 0 additions & 1 deletion nixos/minimal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{
imports = [
./cli.nix
./locale.nix
./meta.nix
./system
../modules
Expand Down

0 comments on commit a80f2f8

Please sign in to comment.