This repository has no description
459 B
17 lines
1{ self, ... }:
2{
3 perSystem =
4 { pkgs, system, ... }:
5 let
6 passWithOtp = pkgs.pass.withExtensions (ext: [ ext.pass-otp ]);
7 in
8 {
9 packages.pass = self.libWithPkgs.${system}.makeWrapper passWithOtp {
10 runtimeInputs = [ pkgs.gnupg ];
11 preHook = ''
12 gpg --import ${self.keys.pgp.yubi.key} &>/dev/null
13 echo '${self.keys.pgp.yubi.id}:6:' | gpg --import-ownertrust &>/dev/null
14 '';
15 };
16 };
17}