nixos/modules/desktop/browsers/qutebrowser/default.nix

30 lines
697 B
Nix
Raw Normal View History

2023-07-08 21:18:57 +04:00
{ options, config, lib, pkgs, ...}:
let
cfg = config.modules.desktop.browsers.qutebrowser;
2023-07-08 21:18:57 +04:00
in
{
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" = {
source = ../../../../config/qutebrowser/config.py;
2023-07-08 21:18:57 +04:00
};
"qutebrowser/greasemonkey" = {
source = ../../../../config/qutebrowser/greasemonkey;
2023-07-08 21:18:57 +04:00
recursive = true;
};
};
};
};
}