From 95c8007b8fe4433cd217db83ce26b8e29875ba06 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 21 Jan 2020 22:27:57 +0100 Subject: [PATCH] xresources: improve `properties` option example Fixes #1001 --- modules/xresources.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/xresources.nix b/modules/xresources.nix index 384008e2..1e5ec854 100644 --- a/modules/xresources.nix +++ b/modules/xresources.nix @@ -29,11 +29,13 @@ in xresources.properties = mkOption { type = types.nullOr types.attrs; default = null; - example = { - "Emacs*toolBar" = 0; - "XTerm*faceName" = "dejavu sans mono"; - "XTerm*charClass" = [ "37:48" "45-47:48" "58:48" "64:48" "126:48" ]; - }; + example = literalExample '' + { + "Emacs*toolBar" = 0; + "XTerm*faceName" = "dejavu sans mono"; + "XTerm*charClass" = [ "37:48" "45-47:48" "58:48" "64:48" "126:48" ]; + } + ''; description = '' X server resources that should be set. Booleans are formatted as "true" or "false" respectively.