feat(user/malte/pass): pass-otp extension

This commit is contained in:
Malte Tammena 2024-01-22 16:47:38 +01:00
parent 37bd72787f
commit bbd8b00bae

View file

@ -22,8 +22,6 @@
PREFIX=~/.local/share/password-store/ PREFIX=~/.local/share/password-store/
SUFFIX=.gpg SUFFIX=.gpg
set -o pipefail
selection=$( fd '.gpg' "$PREFIX" \ selection=$( fd '.gpg' "$PREFIX" \
| sed "s|$PREFIX||" \ | sed "s|$PREFIX||" \
| sed "s|$SUFFIX||" \ | sed "s|$SUFFIX||" \
@ -37,8 +35,17 @@
in { in {
programs.password-store = { programs.password-store = {
enable = true; enable = true;
package = pkgs.pass.withExtensions (exts: [
exts.pass-otp
]);
settings.PASSWORD_STORE_KEY = (builtins.import ./conf.nix).gpg.id; settings.PASSWORD_STORE_KEY = (builtins.import ./conf.nix).gpg.id;
}; };
nixpkgs.overlays = [
(_final: prev: {
firefox = prev.firefox.override {extraNativeMessagingHosts = [pkgs.passff-host];};
})
];
home.packages = [passmenu-bemenu pkgs.hackNerdLigatures]; home.packages = [passmenu-bemenu pkgs.hackNerdLigatures];
} }