diff options
author | Bart Brouns <bart@magnetophon.nl> | 2017-03-11 15:52:12 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-03-15 11:47:02 +0100 |
commit | bb3ef8a95c9659596b8a34d27881cd30ffea2f9f (patch) | |
tree | c8268783ffae1b99322a8c79b7445160ad11d48d /nixos | |
parent | 1893ed54dc1ee7cef56be1c2ce7839c9523ba17e (diff) | |
download | nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.tar nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.tar.gz nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.tar.bz2 nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.tar.lz nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.tar.xz nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.tar.zst nixlib-bb3ef8a95c9659596b8a34d27881cd30ffea2f9f.zip |
physlock: fix issue 21935
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/security/physlock.nix | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/nixos/modules/services/security/physlock.nix b/nixos/modules/services/security/physlock.nix index 34d0be3b1beb..0881483967c6 100644 --- a/nixos/modules/services/security/physlock.nix +++ b/nixos/modules/services/security/physlock.nix @@ -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"} ''; }; |