system/modules/nixos/programs/pass.nix

19 lines
359 B
Nix

{ 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;
};
}