mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #11228 from ocharles/x-ctrl-alt-backspace
services.xserver: Disable Ctrl+Alt+Backspace by default
This commit is contained in:
commit
b475afcf60
1 changed files with 11 additions and 0 deletions
|
@ -409,6 +409,16 @@ in
|
||||||
if possible.
|
if possible.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enableCtrlAltBackspace = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Whether to enable the DontZap option, which binds Ctrl+Alt+Backspace
|
||||||
|
to forcefully kill X. This can lead to data loss and is disabled
|
||||||
|
by default.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -534,6 +544,7 @@ in
|
||||||
''
|
''
|
||||||
Section "ServerFlags"
|
Section "ServerFlags"
|
||||||
Option "AllowMouseOpenFail" "on"
|
Option "AllowMouseOpenFail" "on"
|
||||||
|
Option "DontZap" "${if cfg.enableCtrlAltBackspace then "off" else "on"}"
|
||||||
${cfg.serverFlagsSection}
|
${cfg.serverFlagsSection}
|
||||||
EndSection
|
EndSection
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue