2024-04-10 16:51:28 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
2024-03-24 16:59:47 +01:00
|
|
|
cfg = config.grimmShared;
|
2024-04-10 16:51:28 +02:00
|
|
|
in
|
|
|
|
{
|
2024-03-24 16:59:47 +01:00
|
|
|
config = with cfg; lib.mkIf (enable && tooling.enable && tooling.pass) {
|
|
|
|
security.polkit.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
mkpasswd
|
|
|
|
pinentry
|
|
|
|
gnupg
|
|
|
|
pass
|
|
|
|
libsecret
|
|
|
|
(writeShellScriptBin "passw" "pass $@")
|
|
|
|
] ++ lib.optionals cfg.graphical [
|
|
|
|
lxqt.lxqt-policykit
|
|
|
|
];
|
|
|
|
|
|
|
|
services.passSecretService.enable = true;
|
2024-04-10 16:51:28 +02:00
|
|
|
programs.gnupg.agent = {
|
2024-03-24 16:59:47 +01:00
|
|
|
settings = {
|
2024-04-10 16:51:28 +02:00
|
|
|
# default-cache-ttl = 6000;
|
2024-03-24 16:59:47 +01:00
|
|
|
};
|
|
|
|
pinentryPackage = lib.mkForce pkgs.pinentry;
|
|
|
|
enable = true;
|
|
|
|
# enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|