Update modules/users.nix
This commit is contained in:
parent
ea8bd23cec
commit
72983f7432
@ -37,12 +37,8 @@
|
|||||||
"/run/user/1000";
|
"/run/user/1000";
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${
|
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/systemctl suspend"'';
|
||||||
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
|
|
||||||
}"
|
|
||||||
}"'';
|
|
||||||
security.pam.u2f = {
|
security.pam.u2f = {
|
||||||
control = "sufficient";
|
control = "sufficient";
|
||||||
cue = true;
|
cue = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user