mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-06 16:57:08 +00:00
25 lines
643 B
Nix
25 lines
643 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
options = {
|
||
|
|
||
|
system.defaults.screensaver.askForPassword = mkOption {
|
||
|
type = types.nullOr types.bool;
|
||
|
default = null;
|
||
|
description = ''
|
||
|
If true, the user is prompted for a password when the screen saver is unlocked or stopped. The default is false.
|
||
|
'';
|
||
|
};
|
||
|
|
||
|
system.defaults.screensaver.askForPasswordDelay = mkOption {
|
||
|
type = types.nullOr types.int;
|
||
|
default = null;
|
||
|
description = ''
|
||
|
The number of seconds to delay before the password will be required to unlock or stop the screen saver (the grace period).
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|