From 4974449b96154f3c7bb657debd5350fc7e32f881 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Sun, 1 Mar 2020 21:41:14 +0300 Subject: [PATCH] Update modules/users.nix --- modules/users.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/users.nix b/modules/users.nix index 2ac7ddf..621cbac 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -37,11 +37,11 @@ "/run/user/1000"; services.udev.extraRules = '' - ACTION=="remove", ATTRS{idVendor}=="1050, RUN+="${ + 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 ${ + "/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 = { control = "sufficient";