start making new config file and make qutebrowser

This commit is contained in:
Sakooooo 2023-07-07 00:52:42 +03:00
parent 19c9a31c5f
commit c9353af4a1
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,4 @@
{ options, config, lib, pkgs, ...}:
{
#TODO(sako): add stuff
}

View file

@ -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;
};
};
};
}