summary refs log tree commit diff
path: root/nixos/modules/installer/tools
diff options
context:
space:
mode:
authorVictor Engmark <victor@engmark.name>2023-10-09 14:31:13 +1300
committerArtturin <Artturin@artturin.com>2023-10-11 09:46:37 +0300
commit3a6c79cff6aa6f4c29af04b544ab367561f11346 (patch)
tree80b7f0996e0b7feb42d177da6fefa80a9689be58 /nixos/modules/installer/tools
parentb3597a7a434435c33d0fb7cd5b15fdf94b465ba8 (diff)
downloadnixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.tar
nixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.tar.gz
nixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.tar.bz2
nixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.tar.lz
nixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.tar.xz
nixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.tar.zst
nixpkgs-3a6c79cff6aa6f4c29af04b544ab367561f11346.zip
nixos/x11: refactor XKB options into a single attrset
[Motivation](https://github.com/NixOS/nixpkgs/issues/257817#issuecomment-1741705042):

- Having all the XKB options in the same attribute set clarifies their
  relation better than using a common option name prefix ("xkb").
- `services.xserver.layout` is an XKB option, but this is not obvious
  from its name. Putting it with the other XKB options clarifies this.

Co-authored-by: Michele Guerini Rocco <rnhmjoj@users.noreply.github.com>
Diffstat (limited to 'nixos/modules/installer/tools')
-rw-r--r--nixos/modules/installer/tools/tools.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix
index 78bcbbe2db5..d385e4a6b1c 100644
--- a/nixos/modules/installer/tools/tools.nix
+++ b/nixos/modules/installer/tools/tools.nix
@@ -163,15 +163,15 @@ in
         # console = {
         #   font = "Lat2-Terminus16";
         #   keyMap = "us";
-        #   useXkbConfig = true; # use xkbOptions in tty.
+        #   useXkbConfig = true; # use xkb.options in tty.
         # };
 
       $xserverConfig
 
       $desktopConfiguration
         # Configure keymap in X11
-        # services.xserver.layout = "us";
-        # services.xserver.xkbOptions = "eurosign:e,caps:escape";
+        # services.xserver.xkb.layout = "us";
+        # services.xserver.xkb.options = "eurosign:e,caps:escape";
 
         # Enable CUPS to print documents.
         # services.printing.enable = true;