···
29
-
default = "xlock"; # default according to `man xautolock`
30
-
example = "i3lock -i /path/to/img";
31
-
type = types.string;
29
+
default = "${pkgs.xlockmore}/bin/xlock"; # default according to `man xautolock`
30
+
example = "${pkgs.i3lock}/bin/i3lock -i /path/to/img";
The script to use when automatically locking the computer.
···
40
-
example = "i3lock -i /path/to/img";
41
-
type = types.nullOr types.string;
40
+
example = "${pkgs.i3lock}/bin/i3lock -i /path/to/img";
41
+
type = types.nullOr types.str;
The script to use when manually locking the computer with <command>xautolock -locknow</command>.
···
59
-
example = literalExample ''
60
-
"${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\""
62
-
type = types.nullOr types.string;
59
+
example = "${pkgs.libnotify}/bin/notify-send \"Locking in 10 seconds\"";
60
+
type = types.nullOr types.str;
Notification script to be used to warn about the pending autolock.
···
default = null; # default according to `man xautolock` is none
71
-
example = "systemctl suspend";
72
-
type = types.nullOr types.string;
69
+
example = "${pkgs.systemd}/bin/systemctl suspend";
70
+
type = types.nullOr types.str;
The script to use when nothing has happend for as long as <option>killtime</option>
···
assertion = cfg.killer != null -> cfg.killtime >= 10;
message = "killtime has to be at least 10 minutes according to `man xautolock`";
132
+
] ++ (lib.flip map [ "locker" "notifier" "nowlocker" "killer" ]
135
+
assertion = cfg."${option}" != null -> builtins.substring 0 1 cfg."${option}" == "/";
136
+
message = "Please specify a canonical path for `services.xserver.xautolock.${option}`";