Commit b11729fb4599

Vincent Demeester <vincent@sbr.pm>
2019-03-26 17:56:21
desktop: fix screen-locker xss-lock command-line
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 78aee19
Changed files (1)
modules
profiles
modules/profiles/desktop.nix
@@ -22,7 +22,7 @@ in
         type = types.bool;
       };
       lockCmd = mkOption {
-        default = "-n ${dim-screen} -- ${pkgs.slim}/bin/slimlock";
+        default = "{pkgs.slim}/bin/slimlock";
         description = "Lock command to use";
         type = types.str;
       };
@@ -78,6 +78,7 @@ in
       };
       screen-locker = {
         enable = true;
+        xssLockExtraOptions = [ "-n ${dim-screen}" ];
         lockCmd = cfg.lockCmd;
         inactiveInterval = 15;
       };