summaryrefslogtreecommitdiff
path: root/modules/system/defaults/loginwindow.nix
blob: a8a06ebf80f02826aae96737718d523bbe90b119 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{ config, lib, ... }:

with lib;

{
  options = {
    system.defaults.loginwindow.SHOWFULLNAME = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Displays login window as a name and password field instead of a list of users.
        Default is false.
      '';
    };

    system.defaults.loginwindow.autoLoginUser = mkOption {
      type = types.nullOr types.str;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Auto login the supplied user on boot. Default is Off.
      '';
    };

    system.defaults.loginwindow.GuestEnabled = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Allow users to login to the machine as guests using the Guest account. Default is true.
      '';
    };

    system.defaults.loginwindow.LoginwindowText = mkOption {
      type = types.nullOr types.str;
      default = null;
      description = ''
        Text to be shown on the login window. Default is "\\\\U03bb".
      '';
    };

    system.defaults.loginwindow.ShutDownDisabled = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Hides the Shut Down button on the login screen. Default is false.
      '';
    };

    system.defaults.loginwindow.SleepDisabled = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Hides the Sleep button on the login screen. Default is false.
      '';
    };

    system.defaults.loginwindow.RestartDisabled = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Hides the Restart button on the login screen. Default is false.
      '';
    };

    system.defaults.loginwindow.ShutDownDisabledWhileLoggedIn = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Disables the "Shutdown" option when users are logged in. Default is false.
      '';
    };

    system.defaults.loginwindow.PowerOffDisabledWhileLoggedIn = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        If set to true, the Power Off menu item will be disabled when the user is logged in. Default is false.
      '';
    };

    system.defaults.loginwindow.RestartDisabledWhileLoggedIn = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Apple menu > System Preferences > Users and Groups > Login Options

        Disables the “Restart” option when users are logged in. Default is false.
      '';
    };

    system.defaults.loginwindow.DisableConsoleAccess = mkOption {
      type = types.nullOr types.bool;
      default = null;
      description = ''
        Disables the ability for a user to access the console by typing “>console”
        for a username at the login window. Default is false.
      '';
    };
  };
}