summary refs log tree commit diff
path: root/nixos/modules/services/x11/xserver.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-05-24 17:25:19 +0300
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-08-20 16:55:07 +0000
commitbd18e491a90adf3a103d808ddffd5c6fbb4622a5 (patch)
tree9abf5fe76c9f369993e3d334aa2bf549aca6ee19 /nixos/modules/services/x11/xserver.nix
parent7ab1f26bd41853f9c76a5d394871777cf8f41e4a (diff)
downloadnixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.tar
nixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.tar.gz
nixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.tar.bz2
nixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.tar.lz
nixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.tar.xz
nixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.tar.zst
nixpkgs-bd18e491a90adf3a103d808ddffd5c6fbb4622a5.zip
fontconfig service: drop dpi option
Recommend to use services.xserver.dpi option instead. Mention in the
documentation that it's a sledgehammer approach and monitor settings should be
used instead.

Also don't set DPI in fontconfig settings; fontconfig should use Xft settings
by default so let's not override one value in multiple places. For example,
user now can set DPI via ~/.Xresources properly.
Diffstat (limited to 'nixos/modules/services/x11/xserver.nix')
-rw-r--r--nixos/modules/services/x11/xserver.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 7316f6fcfe5..ad9bd88f98a 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -297,7 +297,11 @@ in
       dpi = mkOption {
         type = types.nullOr types.int;
         default = null;
-        description = "DPI resolution to use for X server.";
+        description = ''
+          Force global DPI resolution to use for X server. It's recommended to
+          use this only when DPI is detected incorrectly; also consider using
+          <literal>Monitor</literal> section in configuration file instead.
+        '';
       };
 
       updateDbusEnvironment = mkOption {