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

31 lines
699 B
Nix
Raw Normal View History

2023-07-08 21:18:57 +04:00
{ options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.desktop.browsers.qutebrowser;
2023-07-08 21:18:57 +04:00
in
{
options.modules.desktop.browsers.qutebrowser = {
2023-07-08 21:18:57 +04:00
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
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;
};
};
};
};
}