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

@ -65,41 +65,35 @@ in
{ path = ".cache/mozilla"; type = "cache"; } { path = ".cache/mozilla"; type = "cache"; }
]; ];
home-manager.users.charlotte = { ... }: { home-manager.users.charlotte = { ... }: {
programs = { programs.firefox = {
browserpass = { enable = true;
enable = true; package = ffPackage;
browsers = [ "firefox" ]; profiles.default = {
}; extensions = with pkgs.nur.repos.rycee.firefox-addons; [
firefox = { belgium-eid
enable = true; decentraleyes
package = ffPackage; ff2mpv
profiles.default = { keepassxc-browser
extensions = with pkgs.nur.repos.rycee.firefox-addons; [ ublock-origin
belgium-eid umatrix
browserpass zotero-connector
decentraleyes ];
ff2mpv settings = {
ublock-origin "browser.aboutConfig.showWarning" = false;
umatrix "browser.contentblocking.category" = "custom";
zotero-connector "browser.download.dir" = "/home/charlotte/downloads";
]; "browser.newtabpage.enabled" = false;
settings = { "browser.safebrowsing.malware.enabled" = false;
"browser.aboutConfig.showWarning" = false; "browser.safebrowsing.phishing.enabled" = false;
"browser.contentblocking.category" = "custom"; "browser.shell.checkDefaultBrowser" = false;
"browser.download.dir" = "/home/charlotte/downloads"; "browser.startup.homepage" = "about:blank";
"browser.newtabpage.enabled" = false; "browser.startup.page" = 3;
"browser.safebrowsing.malware.enabled" = false; "dom.security.https_only_mode" = true;
"browser.safebrowsing.phishing.enabled" = false; "network.cookie.cookieBehavior" = 1;
"browser.shell.checkDefaultBrowser" = false; "privacy.annotate_channels.strict_list.enabled" = true;
"browser.startup.homepage" = "about:blank"; "privacy.trackingprotection.enabled" = true;
"browser.startup.page" = 3; "privacy.trackingprotection.socialtracking.enabled" = true;
"dom.security.https_only_mode" = true; "security.identityblock.show_extended_validation" = true;
"network.cookie.cookieBehavior" = 1;
"privacy.annotate_channels.strict_list.enabled" = true;
"privacy.trackingprotection.enabled" = true;
"privacy.trackingprotection.socialtracking.enabled" = true;
"security.identityblock.show_extended_validation" = true;
};
}; };
}; };
}; };

View file

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

View file

@ -1,21 +0,0 @@
diff --git a/pkgs/tools/security/browserpass/default.nix b/pkgs/tools/security/browserpass/default.nix
index 83f34e2f066f5..ee774172f9122 100644
--- a/pkgs/tools/security/browserpass/default.nix
+++ b/pkgs/tools/security/browserpass/default.nix
@@ -4,6 +4,7 @@
, fetchFromGitHub
, gnupg
, makeWrapper
+, autoPatchelfHook
}:
buildGoModule rec {
@@ -17,7 +18,7 @@ buildGoModule rec {
sha256 = "sha256-UZzOPRRiCUIG7uSSp9AEPMDN/+4cgyK47RhrI8oUx8U=";
};
- nativeBuildInputs = [ makeWrapper ];
+ nativeBuildInputs = [ makeWrapper autoPatchelfHook ];
vendorHash = "sha256-CjuH4ANP2bJDeA+o+1j+obbtk5/NVLet/OFS3Rms4r0=";