about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-22 16:21:37 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-22 16:21:37 +0200
commit3be6acafb6f17b987c9493942636e7f6e626dd3d (patch)
tree9fd14fa9fdbdc34685dfb295fffa9f2fd6b924d6
parentCustom packages: anime-downloader: pass pkgs individually (diff)
downloadnixos-config-3be6acafb6f17b987c9493942636e7f6e626dd3d.tar.gz
nixos-config-3be6acafb6f17b987c9493942636e7f6e626dd3d.tar.bz2
nixos-config-3be6acafb6f17b987c9493942636e7f6e626dd3d.zip
Configure the keymap on a per host basis
-rw-r--r--hosts/configuration.nix1
-rw-r--r--hosts/phobos/default.nix3
-rw-r--r--hosts/vm/default.nix3
-rw-r--r--modules/xorg/default.nix3
4 files changed, 7 insertions, 3 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix
index cf81bcf..1fe6e28 100644
--- a/hosts/configuration.nix
+++ b/hosts/configuration.nix
@@ -44,6 +44,7 @@
 
   # Select internationalisation properties.
   i18n.defaultLocale = "en_US.UTF-8";
+  console.useXkbConfig = true; #use same kb settings (layout) as xorg
 
   # Enable CUPS to print documents.
   # services.printing.enable = true;
diff --git a/hosts/phobos/default.nix b/hosts/phobos/default.nix
index c10295f..5790b67 100644
--- a/hosts/phobos/default.nix
+++ b/hosts/phobos/default.nix
@@ -9,6 +9,9 @@
     ./hardware.nix
   ];
 
+  # Configure keymap in X11
+  services.xserver.layout = "gb";
+
   # Pick only one of the below networking options.
   networking = {
     wireless = {
diff --git a/hosts/vm/default.nix b/hosts/vm/default.nix
index cb55ce6..f20f8be 100644
--- a/hosts/vm/default.nix
+++ b/hosts/vm/default.nix
@@ -9,6 +9,9 @@
     ./hardware.nix
   ];
 
+  # Configure keymap in X11
+  services.xserver.layout = "gb";
+
   # Pick only one of the below networking options.
   networking = {
     # networkmanager.enable = true;  # Easiest to use and most distros use this by default.
diff --git a/modules/xorg/default.nix b/modules/xorg/default.nix
index f75716a..50b070e 100644
--- a/modules/xorg/default.nix
+++ b/modules/xorg/default.nix
@@ -3,9 +3,6 @@
   services.xserver = {
     enable = true;
 
-    # Configure keymap in X11
-    layout = "gb";
-
     displayManager.startx.enable = true;
     windowManager.dwm.enable = true;