Switch to KeepassDX (but keep pass around for now for migration)

This commit is contained in:
Charlotte Van Petegem 2023-06-08 18:04:30 +02:00
parent d8b124187f
commit e3bba98053
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 33 additions and 66 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
{
options.chvp.graphical.pass.enable = lib.mkOption {
@ -7,19 +7,12 @@
};
config = lib.mkIf config.chvp.graphical.pass.enable {
nixpkgs.overlays = [
(self: super: {
pass = (super.pass.override { pass = super.pass-wayland; }).withExtensions (ext: [ ext.pass-otp ]);
})
];
chvp.base.emacs.extraConfig = [
''
(use-package auth-source-pass
(use-package secrets
:ensure nil
:custom
(auth-sources '(password-store))
(auth-source-pass-filename "${config.home-manager.users.charlotte.programs.password-store.settings.PASSWORD_STORE_DIR}")
(auth-sources '(default))
)
''
];
@ -30,6 +23,7 @@
settings = { PASSWORD_STORE_DIR = "/home/charlotte/repos/passwords"; };
};
services.password-store-sync.enable = true;
home.packages = [ pkgs.keepassxc ];
};
};
}