Update modules/users.nix modules/workspace/i3/default.nix

This commit is contained in:
Alexander Bantyev 2020-03-02 12:46:59 +03:00
parent b123e5378c
commit 8983481dc1
2 changed files with 4 additions and 2 deletions

View File

@ -40,6 +40,8 @@
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
'';
security.wrappers.vlock.source = "${pkgs.vlock}/bin/vlock";
security.pam.u2f = {
control = "sufficient";
cue = true;

View File

@ -2,8 +2,8 @@
let
thm = config.themes.colors;
apps = config.defaultApplications;
lock_fork = "swaylock -f -c ${builtins.substring 1 7 thm.bg}";
lock = pkgs.writeShellScript "lock" "swaymsg 'output * dpms off'; swaylock -c ${builtins.substring 1 7 thm.bg}; swaymsg 'output * dpms on'";
lock_fork = pkgs.writeShellScript "lock_fork" "/run/wrappers/bin/vlock -san &";
lock = pkgs.writeShellScript "lock" "swaymsg 'output * dpms off'; /run/wrappers/bin/vlock -san; swaymsg 'output * dpms on'";
in {
environment.sessionVariables._JAVA_AWT_WM_NONREPARENTING = "1";