Removed pykeepass fix, set qutebrowser max history size

This commit is contained in:
Jan-Bulthuis 2024-12-02 00:50:34 +01:00
parent 48cb8e42e9
commit 964dff4d8c
1 changed files with 16 additions and 15 deletions

View File

@ -20,26 +20,27 @@ in
default.browser = mkIf cfg.default "org.qutebrowser.qutebrowser.desktop"; default.browser = mkIf cfg.default "org.qutebrowser.qutebrowser.desktop";
# TODO: Remove once nixpkgs updates # TODO: Remove once nixpkgs updates
nixpkgs.config.packageOverrides = pkgs: { # nixpkgs.config.packageOverrides = pkgs: {
python3 = pkgs.python3.override { # python3 = pkgs.python3.override {
packageOverrides = self: super: { # packageOverrides = self: super: {
pykeepass = super.pykeepass.overrideAttrs (attrs: { # pykeepass = super.pykeepass.overrideAttrs (attrs: {
version = "4.1.0.post1"; # version = "4.1.0.post1";
src = pkgs.fetchFromGitHub { # src = pkgs.fetchFromGitHub {
owner = "libkeepass"; # owner = "libkeepass";
repo = "pykeepass"; # repo = "pykeepass";
rev = "refs/tags/v4.1.0.post1"; # rev = "refs/tags/v4.1.0.post1";
hash = "sha256-64is/XoRF/kojqd4jQIAQi1od8TRhiv9uR+WNIGvP2A="; # hash = "sha256-64is/XoRF/kojqd4jQIAQi1od8TRhiv9uR+WNIGvP2A=";
}; # };
}); # });
}; # };
}; # };
}; # };
programs.qutebrowser = { programs.qutebrowser = {
enable = true; enable = true;
extraConfig = '' extraConfig = ''
config.set("completion.web_history.max_items", 100)
config.set("colors.webpage.darkmode.enabled", False) config.set("colors.webpage.darkmode.enabled", False)
config.set("colors.webpage.preferred_color_scheme", "${if theme.darkMode then "dark" else "light"}") config.set("colors.webpage.preferred_color_scheme", "${if theme.darkMode then "dark" else "light"}")
config.set("fonts.default_family", "${theme.fonts.monospace.name}") config.set("fonts.default_family", "${theme.fonts.monospace.name}")