Last active
January 7, 2019 16:55
-
-
Save ivan/11f4dcdceced90812801ec505195fe80 to your computer and use it in GitHub Desktop.
NixOS physlock: run command before lock and after unlock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
{ | |
services.physlock.enable = true; | |
systemd.services."physlock".serviceConfig = { | |
# Run before physlock starts | |
ExecStartPre = "${pkgs.ityntolm}/bin/deny-usb-devices"; | |
# Run after physlock stops | |
ExecStopPost = "${pkgs.ityntolm}/bin/allow-usb-devices"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment