[Nix-dev] Automatically locking the screen with xautolock
Nikita Karetnikov
nikita at karetnikov.org
Sun Feb 8 19:07:10 CET 2015
How do I automatically lock the screen in NixOS? I've installed
xautolock and slock. And tested
sudo xautolock -time 1 -locker slock
in the shell, which works fine. Can I make it work without sudo?
It's a problem because these lines in configuration.nix:
displayManager.sessionCommands =
''
sudo xautolock -time 1 -locker slock &
'';
result in
sudo: no tty present and no askpass program specified
So it fails to start.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150208/79db2b6e/attachment.bin
More information about the nix-dev
mailing list