diff options
author | Charles Strahan <charles@cstrahan.com> | 2016-10-03 04:04:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 04:04:45 -0400 |
commit | 7df35fd268a25093ccafab28dd750e2bd15fd45f (patch) | |
tree | abe69eadef550fecf76982fe0e5f2ed91e41dc61 /nixos/modules/services | |
parent | 8cb56939554f155b422f672b5dad745c5c06ddc5 (diff) | |
parent | f9a3835a14e9bee3fb36e7d96d332cf30a5a94af (diff) | |
download | nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.tar nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.tar.gz nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.tar.bz2 nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.tar.lz nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.tar.xz nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.tar.zst nixlib-7df35fd268a25093ccafab28dd750e2bd15fd45f.zip |
Merge pull request #19143 from cstrahan/nixos-typematic
nixos: xserver typematic configuration options
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 1bd578424ee4..5f10f9b48a8c 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -149,6 +149,22 @@ in ''; }; + autoRepeatDelay = mkOption { + type = types.nullOr types.int; + default = null; + description = '' + Sets the autorepeat delay (length of time in milliseconds that a key must be depressed before autorepeat starts). + ''; + }; + + autoRepeatInterval = mkOption { + type = types.nullOr types.int; + default = null; + description = '' + Sets the autorepeat interval (length of time in milliseconds that should elapse between autorepeat-generated keystrokes). + ''; + }; + inputClassSections = mkOption { type = types.listOf types.lines; default = []; @@ -536,7 +552,9 @@ in ] ++ optional (cfg.display != null) ":${toString cfg.display}" ++ optional (cfg.tty != null) "vt${toString cfg.tty}" ++ optional (cfg.dpi != null) "-dpi ${toString cfg.dpi}" - ++ optional (!cfg.enableTCP) "-nolisten tcp"; + ++ optional (!cfg.enableTCP) "-nolisten tcp" + ++ optional (cfg.autoRepeatDelay != null) "-ardelay ${toString cfg.autoRepeatDelay}" + ++ optional (cfg.autoRepeatInterval != null) "-arinterval ${toString cfg.autoRepeatInterval}"; services.xserver.modules = concatLists (catAttrs "modules" cfg.drivers) ++ |