nixos/modules/desktop/browsers/qutebrowser/default.nix
2024-09-12 15:23:08 +04:00

29 lines
693 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
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;
};
};
};
};
}