Skip to content

Commit

Permalink
nixos/xserver: move keyboard layout settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 19, 2023
1 parent 8d148fe commit 9b65011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 0 additions & 8 deletions nixos/desktop/locale.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
};
};

# 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";
};
Expand Down
7 changes: 7 additions & 0 deletions nixos/desktop/xserver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@
accelProfile = "flat";
};
};

# X11 keyboard layout
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";

};
};

Expand Down

0 comments on commit 9b65011

Please sign in to comment.