Skip to content

Commit

Permalink
fix: add bitwarden-cli for bw2pass to work
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Apr 5, 2024
1 parent 0be192d commit e9e5daf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion home/modules/password-store.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, options, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, inputs, ... }:

with lib;
let
Expand All @@ -12,6 +12,8 @@ in {

config.home.packages = mkIf cfg.enable [
pkgs.pass2csv
pkgs.bitwarden-cli
pkgs.my.bw2pass # custom script that imports bitwarden to pass
];

config.programs.password-store = mkIf cfg.enable {
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/bw2pass/bw2pass.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ get_items() {
done
}

# check_bw_login
check_bw_login
get_items
2 changes: 1 addition & 1 deletion packages/scripts/bw2pass/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
cp $src $out/bin/bw2pass
wrapProgram $out/bin/bw2pass \
--prefix PATH : ${lib.makeBinPath [ bash jq ]}
--prefix PATH : ${lib.makeBinPath [ bash jq bitwarden-cli ]}
'';
}

0 comments on commit e9e5daf

Please sign in to comment.