diff --git a/modules/clan/personal-computer/users.nix b/modules/clan/personal-computer/users.nix index afdfa6b..19d602f 100644 --- a/modules/clan/personal-computer/users.nix +++ b/modules/clan/personal-computer/users.nix @@ -3,11 +3,10 @@ users.mutableUsers = lib.mkForce true; security.polkit.extraConfig = '' polkit.addRule(function(action, subject) { - if (action.id == "org.freedesktop.accounts.change-own-password") { - if (subject.user == polkit.getUserForSubject(subject).getUserName()) { - return polkit.Result.YES; - } - } + if ((action.id == "org.freedesktop.accounts.change-own-password")) { + return polkit.Result.AUTH_SELF; + } }); ''; + security.pam.services."sddm".kwallet.enable = true; }