alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
tools.pass: add otp & nicer output
author
lassulus
date
1 year ago
(Jun 5, 2025, 10:26 AM CEST)
commit
aec76ee5
aec76ee5478debf4afcd0a7fca19a8c7e5b2136d
parent
d1882ebc
d1882ebc7f36b8113c438afc15cf6d51604777b0
+7
-7
1 changed file
Expand all
Collapse all
Unified
Split
tools
pass.nix
+7
-7
tools/pass.nix
View file
Reviewed
···
1
1
-
2
1
{ self, ... }:
3
2
{
4
3
perSystem =
5
5
-
{ pkgs, ... }: {
4
4
+
{ pkgs, ... }:
5
5
+
{
6
6
packages.pass = pkgs.symlinkJoin {
7
7
name = "pass";
8
8
paths = [
9
9
(pkgs.writeShellApplication {
10
10
name = "pass";
11
11
runtimeInputs = [
12
12
-
pkgs.pass
12
12
+
(pkgs.pass.withExtensions (ext: [ ext.pass-otp ]))
13
13
pkgs.gnupg
14
14
];
15
15
text = ''
16
16
-
set -x
17
17
-
gpg --import ${self.keys.pgp.yubi.key}
18
18
-
echo '${self.keys.pgp.yubi.id}:6:' | gpg --import-ownertrust
16
16
+
set -efu
17
17
+
gpg --import ${self.keys.pgp.yubi.key} &>/dev/null
18
18
+
echo '${self.keys.pgp.yubi.id}:6:' | gpg --import-ownertrust &>/dev/null
19
19
pass "$@"
20
20
'';
21
21
})
22
22
-
pkgs.pass
22
22
+
(pkgs.pass.withExtensions (ext: [ ext.pass-otp ]))
23
23
];
24
24
};
25
25
};