Skip to content

Commit

Permalink
Change screen locker to physlock
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Mar 7, 2024
1 parent e8f1777 commit 7b1af97
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions modules/laptop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,17 @@
];
};

systemd.user.services.xss-lock = {
unitConfig = {
Description = "Screenlocker service";
PartOf = ["graphical-session.target"];
};
wantedBy = ["graphical-session.target"];
serviceConfig = {
Environment = [
"XSECURELOCK_PASSWORD_PROMPT=asterisks"
"XSECURELOCK_SHOW_KEYBOARD_LAYOUT=0"
];
ExecStart = "${pkgs.xss-lock}/bin/xss-lock --session \${XDG_SESSION_ID} -- ${pkgs.xsecurelock}/bin/xsecurelock";
};
services.physlock = {
enable = true;
allowAnyUser = true;
};
services.xserver.xautolock = let
cmd = "/run/wrappers/physlock -d";
in {
enable = true;
locker = cmd;
nowlocker = cmd;
time = 5;
killtime = 15;
};
}

0 comments on commit 7b1af97

Please sign in to comment.