From 99914f8581d7526877ff596a0b16c0e0a2d3cd59 Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Mon, 4 Nov 2013 18:45:05 +0400 Subject: [PATCH] Add serverFlagsSection parameter to the xserver config --- nixos/modules/services/x11/xserver.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index e391da5c5721..f02c12b4bb64 100644 --- a/nixos/modules/services/x11/xserver.nix +++ b/nixos/modules/services/x11/xserver.nix @@ -333,6 +333,18 @@ in ''; }; + serverFlagsSection = mkOption { + default = ""; + example = + '' + Option "BlankTime" "0" + Option "StandbyTime" "0" + Option "SuspendTime" "0" + Option "OffTime" "0" + ''; + description = "Contents of the ServerFlags section of the X server configuration file."; + }; + moduleSection = mkOption { default = ""; example = @@ -568,6 +580,7 @@ in '' Section "ServerFlags" Option "AllowMouseOpenFail" "on" + ${cfg.serverFlagsSection} EndSection Section "Module"