about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-04-10 17:46:17 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-04-10 17:46:17 +0200
commitc1178f171c1267b28add2f131d5b959f3d059282 (patch)
tree4534e21e6d610fc79a78d64d6f323c65741d35b9 /nixos
parent9a55b76db1a00dd735ab82b1c7c030ee6705ca89 (diff)
downloadnixlib-c1178f171c1267b28add2f131d5b959f3d059282.tar
nixlib-c1178f171c1267b28add2f131d5b959f3d059282.tar.gz
nixlib-c1178f171c1267b28add2f131d5b959f3d059282.tar.bz2
nixlib-c1178f171c1267b28add2f131d5b959f3d059282.tar.lz
nixlib-c1178f171c1267b28add2f131d5b959f3d059282.tar.xz
nixlib-c1178f171c1267b28add2f131d5b959f3d059282.tar.zst
nixlib-c1178f171c1267b28add2f131d5b959f3d059282.zip
nixos/xserver: Use null as default for dpi option
Commit 98d9bba introduced this option as a nullOr type and it actually
checks whether null has been set and only appends -dpi if that's the
case. So let's actually set the default to null instead of 0.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/xserver.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index c3cd550e8385..70df18b40209 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -221,7 +221,7 @@ in
 
       dpi = mkOption {
         type = types.nullOr types.int;
-        default = 0;
+        default = null;
         description = "DPI resolution to use for X server.";
       };