system/modules/nixos/programs/pass.nix

21 lines
378 B
Nix
Raw Normal View History

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 ];
2024-11-30 23:46:01 +03:00
# services.passSecretService.enable = true;
2024-04-16 02:51:46 +03:00
};
}