From d9277081c9c2a29b21ee144d3568fb433cfd3332 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Sun, 1 Mar 2020 21:59:49 +0300 Subject: [PATCH] Revert "Update modules/users.nix modules/workspace/i3/default.nix modules/workspace/misc.nix" This reverts commit 1462142487ae55a72b4d1c2bb9d6c7df60d4be42. # Conflicts: # modules/workspace/misc.nix --- modules/users.nix | 29 ++++++++++++++++++++++++++++- modules/workspace/i3/default.nix | 6 +++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/modules/users.nix b/modules/users.nix index 724504b..134e5d7 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -49,7 +49,34 @@ enable = true; }; - security.pam.services.default.unixAuth = false; + security.pam.services = builtins.listToAttrs (builtins.map (name: { + inherit name; + value = { unixAuth = false; }; + }) [ + "chpasswd" + "chsh" + "groupadd" + "groupdel" + "groupmems" + "groupmod" + "i3lock" + "i3lock-color" + "login" + "passwd" + "polkit-1" + "runuser" + "runuser-l" + "su" + "sudo" + "swaylock" + "systemd-user" + "useradd" + "userdel" + "usermod" + "vlock" + "xlock" + "xscreensaver" + ]); security.sudo = { enable = true; diff --git a/modules/workspace/i3/default.nix b/modules/workspace/i3/default.nix index 3430759..6cfa086 100755 --- a/modules/workspace/i3/default.nix +++ b/modules/workspace/i3/default.nix @@ -61,6 +61,10 @@ in { command = "border pixel 2px"; criteria = { window_role = "popup"; }; } + { + command = "floating enable"; + criteria = { app_id = "org.kde.polkit-kde-authentication-1"; }; + } { command = "sticky enable"; criteria = { floating = ""; }; @@ -72,7 +76,7 @@ in { { command = "${pkgs.kdeconnect}/libexec/kdeconnectd"; } { command = - "${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"; + "${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"; } { command =