Skip to content

Commit

Permalink
physlock: fix issue 21935
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon authored and globin committed Mar 15, 2017
1 parent 1893ed5 commit bb3ef8a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions nixos/modules/services/security/physlock.nix
Expand Up @@ -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.
'';
};

Expand Down Expand Up @@ -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"}
'';
};

Expand Down

0 comments on commit bb3ef8a

Please sign in to comment.