2023-07-08 21:18:57 +04:00
|
|
|
{ options, config, lib, pkgs, ...}:
|
|
|
|
let
|
2023-07-09 02:03:46 +04:00
|
|
|
cfg = config.modules.desktop.browsers.qutebrowser;
|
2023-07-08 21:18:57 +04:00
|
|
|
in
|
|
|
|
{
|
2023-07-09 02:03:46 +04:00
|
|
|
options.modules.desktop.browsers.qutebrowser = {
|
2024-08-01 16:24:09 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
2023-07-08 21:18:57 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-07-08 21:18:57 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
qutebrowser-qt6
|
|
|
|
python310Packages.pynacl
|
|
|
|
python310Packages.adblock
|
|
|
|
];
|
|
|
|
|
|
|
|
home-manager.users.sako = { pkgs , ...}: {
|
|
|
|
xdg.configFile = {
|
|
|
|
"qutebrowser/config.py" = {
|
2023-07-08 21:20:54 +04:00
|
|
|
source = ../../../../config/qutebrowser/config.py;
|
2023-07-08 21:18:57 +04:00
|
|
|
};
|
|
|
|
"qutebrowser/greasemonkey" = {
|
2023-07-08 21:20:54 +04:00
|
|
|
source = ../../../../config/qutebrowser/greasemonkey;
|
2023-07-08 21:18:57 +04:00
|
|
|
recursive = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|