physlock: fix issue 21935

This commit is contained in:
Bart Brouns 2017-03-11 15:52:12 +01:00 committed by Robin Gloster
parent 1893ed54dc
commit bb3ef8a95c

View file

@ -26,17 +26,7 @@ in
This will switch to a new virtual terminal, turn off console
switching and disable SysRq mechanism (when
<option>services.physlock.disableSysRq</option> is set)
until the root or <option>services.physlock.user</option>
password is given.
'';
};
user = mkOption {
type = types.nullOr types.str;
default = null;
description = ''
User whose password will be used to unlock the screen on par
with the root password.
until the root or user password is given.
'';
};
@ -105,7 +95,7 @@ in
++ cfg.lockOn.extraTargets;
serviceConfig.Type = "forking";
script = ''
${pkgs.physlock}/bin/physlock -d${optionalString cfg.disableSysRq "s"}${optionalString (cfg.user != null) " -u ${cfg.user}"}
${pkgs.physlock}/bin/physlock -d${optionalString cfg.disableSysRq "s"}
'';
};