12 lines
278 B
Nix
12 lines
278 B
Nix
{ lib, ... }:
|
|
{
|
|
users.mutableUsers = lib.mkForce true;
|
|
security.polkit.extraConfig = ''
|
|
polkit.addRule(function(action, subject) {
|
|
if ((action.id == "org.freedesktop.accounts.change-own-password")) {
|
|
return polkit.Result.AUTH_SELF;
|
|
}
|
|
});
|
|
'';
|
|
}
|