start making new config file and make qutebrowser
This commit is contained in:
parent
19c9a31c5f
commit
c9353af4a1
2 changed files with 35 additions and 0 deletions
4
hosts/sakotop/newconfig.nix
Normal file
4
hosts/sakotop/newconfig.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ options, config, lib, pkgs, ...}:
|
||||
{
|
||||
#TODO(sako): add stuff
|
||||
}
|
31
modules/desktop/web/qutebrowser.nix
Normal file
31
modules/desktop/web/qutebrowser.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue