about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBrandon Edens <brandonedens@gmail.com>2016-04-08 18:53:42 -0700
committerBrandon Edens <brandonedens@gmail.com>2016-04-08 18:53:42 -0700
commit98d9bbaec2317101f452151b8a8e844b4140e806 (patch)
tree50729190a4ffafd5a57f9c98344cf06a19cdfcbe /nixos
parentbd4720a7d6248ca01996fe801e5edfe5ce1804b7 (diff)
downloadnixlib-98d9bbaec2317101f452151b8a8e844b4140e806.tar
nixlib-98d9bbaec2317101f452151b8a8e844b4140e806.tar.gz
nixlib-98d9bbaec2317101f452151b8a8e844b4140e806.tar.bz2
nixlib-98d9bbaec2317101f452151b8a8e844b4140e806.tar.lz
nixlib-98d9bbaec2317101f452151b8a8e844b4140e806.tar.xz
nixlib-98d9bbaec2317101f452151b8a8e844b4140e806.tar.zst
nixlib-98d9bbaec2317101f452151b8a8e844b4140e806.zip
Add DPI option to xserver invocation.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/xserver.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 76431f211243..c3cd550e8385 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -219,6 +219,12 @@ in
         '';
       };
 
+      dpi = mkOption {
+        type = types.nullOr types.int;
+        default = 0;
+        description = "DPI resolution to use for X server.";
+      };
+
       startDbusSession = mkOption {
         type = types.bool;
         default = true;
@@ -513,6 +519,7 @@ in
         "-xkbdir" "${cfg.xkbDir}"
       ] ++ optional (cfg.display != null) ":${toString cfg.display}"
         ++ optional (cfg.tty     != null) "vt${toString cfg.tty}"
+        ++ optional (cfg.dpi     != null) "-dpi ${toString cfg.dpi}"
         ++ optionals (cfg.display != null) [ "-logfile" "/var/log/X.${toString cfg.display}.log" ]
         ++ optional (!cfg.enableTCP) "-nolisten tcp";