summaryrefslogtreecommitdiff
path: root/modules/system/defaults/screensaver.nix
blob: 3e5032b5c584944a40cfaab1cd8c46648a50b9a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ 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).
        '';
    };
  };
}