diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index e391da5c572..f02c12b4bb6 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"