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.passmenu: init
author
lassulus
date
1 year ago
(Jun 5, 2025, 3:04 PM CEST)
commit
41ee30a6
41ee30a6dc16708f114c9a87806bf03217eb3bcd
parent
dd545bc1
dd545bc13c0001d403e3dca97cbcd9fdd2126750
+33
2 changed files
Expand all
Collapse all
Unified
Split
flake.nix
tools
passmenu.nix
+1
flake.nix
View file
Reviewed
···
133
133
./tools/get-spora-hosts.nix
134
134
./tools/pass.nix
135
135
./tools/menu.nix
136
136
+
./tools/passmenu.nix
136
137
./formatter.nix
137
138
];
138
139
flake.nixosConfigurations = clan.nixosConfigurations;
+32
tools/passmenu.nix
View file
Reviewed
···
1
1
+
{ self, ... }:
2
2
+
{
3
3
+
perSystem =
4
4
+
{ pkgs, ... }:
5
5
+
{
6
6
+
packages.passmenu = pkgs.writeShellApplication {
7
7
+
name = "passmenu";
8
8
+
runtimeInputs = [
9
9
+
self.packages.${pkgs.system}.menu
10
10
+
];
11
11
+
text = ''
12
12
+
set -eu
13
13
+
shopt -s nullglob globstar
14
14
+
15
15
+
# typeit=0
16
16
+
# if [[ $1 == "--type" ]]; then
17
17
+
# typeit=1
18
18
+
# shift
19
19
+
# fi
20
20
+
21
21
+
prefix=''${PASSWORD_STORE_DIR-~/.password-store}
22
22
+
password_files=( "$prefix"/**/*.gpg )
23
23
+
password_files=( "''${password_files[@]#"$prefix"/}" )
24
24
+
password_files=( "''${password_files[@]%.gpg}" )
25
25
+
26
26
+
password=$(printf '%s\n' "''${password_files[@]}" | menu "$@")
27
27
+
28
28
+
pass show -c "$password" 2>/dev/null
29
29
+
'';
30
30
+
};
31
31
+
};
32
32
+
}