Update modules/users.nix

This commit is contained in:
Alexander Bantyev 2020-03-01 23:40:55 +03:00
parent ea8bd23cec
commit 72983f7432
1 changed files with 2 additions and 6 deletions

View File

@ -37,12 +37,8 @@
"/run/user/1000";
services.udev.extraRules = ''
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${
pkgs.writeShellScript "lock-system"
"/run/wrappers/bin/sudo -u balsoft XDG_RUNTIME_DIR=/run/user/1000/ ${pkgs.swaylock}/bin/swaylock -f -c ${
builtins.substring 1 7 config.themes.colors.bg
}"
}"'';
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/systemctl suspend"'';
security.pam.u2f = {
control = "sufficient";
cue = true;