mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/clan/personal-computer/default.nix
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{ lib, ... }:
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
});
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user