Se você estiver usando plasma5, acredito que isso já esteja ativado.
Você pode usar a opção security.pam.services.<name?>.enableKwallet
.
Adicione à sua configuração:
pam.services = [
{ name = "kwallet";
enableKwallet = true;
}
];
Isso adicionará a entrada pam necessária em /etc/pam.d
$ cat /etc/static/pam.d/kwallet
# Account management.
account sufficient pam_unix.so
# Authentication management.
auth required pam_unix.so likeauth
auth optional /nix/store/llds2sy99zg92lrk9gsfzhpz7f6wnxdy-kwallet-pam-5.8.6/lib/security/pam_kwallet5.so kwalletd=/nix/store/x9q0g102hlxx60jb332xmdpq76ia1bja-kwallet-5.31.0/bin/kwalletd5
auth sufficient pam_unix.so likeauth try_first_pass
auth required pam_deny.so
# Password management.
password requisite pam_unix.so nullok sha512
# Session management.
session required pam_env.so envfile=/nix/store/5ninxpd3cmysfzlhij1afymd0gyg7x0p-pam-environment
session required pam_unix.so
session optional /nix/store/llds2sy99zg92lrk9gsfzhpz7f6wnxdy-kwallet-pam-5.8.6/lib/security/pam_kwallet5.so kwalletd=/nix/store/x9q0g102hlxx60jb332xmdpq76ia1bja-kwallet-5.31.0/bin/kwalletd5