git.iko.soy/typeable/nixpkgs
on master help sign in
physlock: fix issue 21935
bb3ef8aBart Brouns
nixos/modules/services/security/physlock.nix+2−12
@@ -26,17 +26,7 @@ in
26 This will switch to a new virtual terminal, turn off console
26 This will switch to a new virtual terminal, turn off console
27 switching and disable SysRq mechanism (when
27 switching and disable SysRq mechanism (when
28 <option>services.physlock.disableSysRq</option> is set)
28 <option>services.physlock.disableSysRq</option> is set)
29− until the root or <option>services.physlock.user</option>
30− password is given.
29+ until the root or user password is given.
31− '';
32− };
33−
34− user = mkOption {
35− type = types.nullOr types.str;
36− default = null;
37− description = ''
38− User whose password will be used to unlock the screen on par
39− with the root password.
40 '';
30 '';
41 };
31 };
42
32
@@ -105,7 +95,7 @@ in
105 ++ cfg.lockOn.extraTargets;
95 ++ cfg.lockOn.extraTargets;
106 serviceConfig.Type = "forking";
96 serviceConfig.Type = "forking";
107 script = ''
97 script = ''
108− ${pkgs.physlock}/bin/physlock -d${optionalString cfg.disableSysRq "s"}${optionalString (cfg.user != null) " -u ${cfg.user}"}
98+ ${pkgs.physlock}/bin/physlock -d${optionalString cfg.disableSysRq "s"}
109 '';
99 '';
110 };
100 };
111
101