system/modules/nixos/programs/pass.nix

20 lines
359 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
]);
in
{
options.local.programs.pass.enable = lib.mkEnableOption "pass";
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pass ];
services.passSecretService.enable = true;
};
}