2024-04-16 02:51:46 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.local.programs.pass;
|
|
|
|
|
|
|
|
pass = pkgs.pass.withExtensions (ext: [
|
|
|
|
ext.pass-audit
|
|
|
|
ext.pass-update
|
2024-04-20 21:36:21 +03:00
|
|
|
ext.pass-otp
|
2024-04-16 02:51:46 +03:00
|
|
|
]);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.local.programs.pass.enable = lib.mkEnableOption "pass";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pass ];
|
|
|
|
|
|
|
|
services.passSecretService.enable = true;
|
|
|
|
};
|
|
|
|
}
|