nixos/modules/desktop/browsers/qutebrowser/default.nix
2024-08-01 16:24:09 +04:00

29 lines
697 B
Nix

{ options, config, lib, pkgs, ...}:
let
cfg = config.modules.desktop.browsers.qutebrowser;
in
{
options.modules.desktop.browsers.qutebrowser = {
enable = lib.mkEnableOption false;
};
config = lib.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;
};
"qutebrowser/greasemonkey" = {
source = ../../../../config/qutebrowser/greasemonkey;
recursive = true;
};
};
};
};
}