mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/personal-computer/default.nix
This commit is contained in:
2026-01-14 16:38:33 +07:00
parent 906a15bfa3
commit 7d9366e8bf
4 changed files with 25 additions and 4 deletions

View File

@@ -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;
}
}
});
'';
}