physlock: fix issue 21935
This commit is contained in:
parent
1893ed54dc
commit
bb3ef8a95c
@ -26,17 +26,7 @@ in
|
|||||||
This will switch to a new virtual terminal, turn off console
|
This will switch to a new virtual terminal, turn off console
|
||||||
switching and disable SysRq mechanism (when
|
switching and disable SysRq mechanism (when
|
||||||
<option>services.physlock.disableSysRq</option> is set)
|
<option>services.physlock.disableSysRq</option> is set)
|
||||||
until the root or <option>services.physlock.user</option>
|
until the root or user password is given.
|
||||||
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.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -105,7 +95,7 @@ in
|
|||||||
++ cfg.lockOn.extraTargets;
|
++ cfg.lockOn.extraTargets;
|
||||||
serviceConfig.Type = "forking";
|
serviceConfig.Type = "forking";
|
||||||
script = ''
|
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"}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user