diff options
author | Artturin <Artturin@artturin.com> | 2023-10-14 04:15:53 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-10-14 04:15:53 +0300 |
commit | d891f369ee0e754cedaad890a5a499294c51be94 (patch) | |
tree | c88bf82789f84166e744c04ecb9b8ddfc96b96bd /nixos | |
parent | 153d89edda0349d57aa450fd9c249f52831b1168 (diff) | |
download | nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.tar nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.tar.gz nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.tar.bz2 nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.tar.lz nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.tar.xz nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.tar.zst nixpkgs-d891f369ee0e754cedaad890a5a499294c51be94.zip |
nixos/x11: don't use a submodule for xkb options
A submodule is unnecessary Improved a few descriptions
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 92 |
1 files changed, 43 insertions, 49 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index a5b624fcfdb..4a8f2f61caa 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -364,55 +364,49 @@ in ''; }; - xkb = mkOption { - default = { }; - description = "X keyboard extension (XKB) configuration"; - type = types.submodule { - options = { - layout = mkOption { - type = types.str; - default = "us"; - description = lib.mdDoc '' - Keyboard layout, or multiple keyboard layouts separated by commas. - ''; - }; - - model = mkOption { - type = types.str; - default = "pc104"; - example = "presario"; - description = lib.mdDoc '' - Keyboard model. - ''; - }; - - options = mkOption { - type = types.commas; - default = "terminate:ctrl_alt_bksp"; - example = "grp:caps_toggle,grp_led:scroll"; - description = lib.mdDoc '' - X keyboard options; layout switching goes here. - ''; - }; - - variant = mkOption { - type = types.str; - default = ""; - example = "colemak"; - description = lib.mdDoc '' - X keyboard variant. - ''; - }; - - dir = mkOption { - type = types.path; - default = "${pkgs.xkeyboard_config}/etc/X11/xkb"; - defaultText = literalExpression ''"''${pkgs.xkeyboard_config}/etc/X11/xkb"''; - description = lib.mdDoc '' - Path used for -xkbdir xserver parameter. - ''; - }; - }; + xkb = { + layout = mkOption { + type = types.str; + default = "us"; + description = lib.mdDoc '' + X keyboard layout, or multiple keyboard layouts separated by commas. + ''; + }; + + model = mkOption { + type = types.str; + default = "pc104"; + example = "presario"; + description = lib.mdDoc '' + X keyboard model. + ''; + }; + + options = mkOption { + type = types.commas; + default = "terminate:ctrl_alt_bksp"; + example = "grp:caps_toggle,grp_led:scroll"; + description = lib.mdDoc '' + X keyboard options; layout switching goes here. + ''; + }; + + variant = mkOption { + type = types.str; + default = ""; + example = "colemak"; + description = lib.mdDoc '' + X keyboard variant. + ''; + }; + + dir = mkOption { + type = types.path; + default = "${pkgs.xkeyboard_config}/etc/X11/xkb"; + defaultText = literalExpression ''"''${pkgs.xkeyboard_config}/etc/X11/xkb"''; + description = lib.mdDoc '' + Path used for -xkbdir xserver parameter. + ''; }; }; |