From c9353af4a1d6aa9ff10822751a45509171b270ac Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 7 Jul 2023 00:52:42 +0300 Subject: [PATCH] start making new config file and make qutebrowser --- hosts/sakotop/newconfig.nix | 4 ++++ modules/desktop/web/qutebrowser.nix | 31 +++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 hosts/sakotop/newconfig.nix create mode 100644 modules/desktop/web/qutebrowser.nix 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; + }; + }; + }; +}