diff --git a/hosts/sakotop/newconfig.nix b/hosts/sakotop/newconfig.nix new file mode 100644 index 00000000..b64a2c7b --- /dev/null +++ b/hosts/sakotop/newconfig.nix @@ -0,0 +1,4 @@ +{ options, config, lib, pkgs, ...}: +{ + #TODO(sako): add stuff +} diff --git a/modules/desktop/web/qutebrowser.nix b/modules/desktop/web/qutebrowser.nix new file mode 100644 index 00000000..443b1d63 --- /dev/null +++ b/modules/desktop/web/qutebrowser.nix @@ -0,0 +1,31 @@ +{ options, config, lib, pkgs, ...}: +with lib; +let cfg = config.modules.web.qutebrowser; +in { + options.modules.web.qutebrowser = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + users.users.sako = { + packages = with pkgs; [ + qutebrowser-qt6 + python310Packages.pynacl + python310Packages.adblock + ]; + }; + + nixpkgs.overlays = [ + (final: prev: { qutebrowser = prev.qutebrowser.override { enableWideVine = true; }; }) + ]; + xdg.configFile = { + "qutebrowser/config.py" = { + source = ../../../config/qutebrowser/config.py; + }; + "qutebrowser/greasemonkey" = { + source = ../../../config/qutebrowser/greasemonkey; + recursive = true; + }; + }; + }; +}