Move qutebrowser configuration
This commit is contained in:
parent
96b431de55
commit
be98bcad26
8 changed files with 39 additions and 52 deletions
|
@ -20,8 +20,6 @@
|
||||||
|
|
||||||
firefox.enable = true;
|
firefox.enable = true;
|
||||||
firefox.homepageUrl = "https://nixedo.oliverdavies.uk";
|
firefox.homepageUrl = "https://nixedo.oliverdavies.uk";
|
||||||
|
|
||||||
qutebrowser.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk.enable = true;
|
gtk.enable = true;
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
|
||||||
cfg = config.features.desktop.browsers.qutebrowser;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.features.desktop.browsers.qutebrowser.enable = mkEnableOption "Enable qutebrowser";
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
programs.qutebrowser = {
|
|
||||||
enable = true;
|
|
||||||
|
|
||||||
package = pkgs.stable.qutebrowser;
|
|
||||||
|
|
||||||
searchEngines = {
|
|
||||||
dp = "https://www.drupal.org/project/{}";
|
|
||||||
du = "https://www.drupal.org/u/{}";
|
|
||||||
gh = "https://github.com/search?q={}";
|
|
||||||
mn = "https://mynixos.com/search?q={}";
|
|
||||||
nx = "https://search.nixos.org/packages?query={}";
|
|
||||||
yt = "https://www.youtube.com/results?search_query={}";
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = {
|
|
||||||
colors.webpage.darkmode.enabled = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
keyBindings = {
|
|
||||||
normal = {
|
|
||||||
"<Ctrl-d>" = "config-cycle colors.webpage.darkmode.enabled true false";
|
|
||||||
|
|
||||||
"xb" = "config-cycle statusbar.show always never";
|
|
||||||
"xt" = "config-cycle tabs.show always never";
|
|
||||||
"xx" = mkMerge [
|
|
||||||
"config-cycle statusbar.show always never"
|
|
||||||
"config-cycle tabs.show always never"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -3,7 +3,6 @@
|
||||||
./bookmarkthis.nix
|
./bookmarkthis.nix
|
||||||
./browsers/chromium.nix
|
./browsers/chromium.nix
|
||||||
./browsers/firefox.nix
|
./browsers/firefox.nix
|
||||||
./browsers/qutebrowser.nix
|
|
||||||
./dev-commit.nix
|
./dev-commit.nix
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./media/handbrake.nix
|
./media/handbrake.nix
|
||||||
|
|
3
modules2/browsers/qutebrowser/enable.nix
Normal file
3
modules2/browsers/qutebrowser/enable.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.programs.qutebrowser.enable = true;
|
||||||
|
}
|
14
modules2/browsers/qutebrowser/key-bindings.nix
Normal file
14
modules2/browsers/qutebrowser/key-bindings.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.programs.qutebrowser.keyBindings.normal = {
|
||||||
|
"<Ctrl-d>" = "config-cycle colors.webpage.darkmode.enabled true false";
|
||||||
|
|
||||||
|
"xb" = "config-cycle statusbar.show always never";
|
||||||
|
"xt" = "config-cycle tabs.show always never";
|
||||||
|
"xx" = lib.mkMerge [
|
||||||
|
"config-cycle statusbar.show always never"
|
||||||
|
"config-cycle tabs.show always never"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
7
modules2/browsers/qutebrowser/package.nix
Normal file
7
modules2/browsers/qutebrowser/package.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
programs.qutebrowser.package = pkgs.stable.qutebrowser;
|
||||||
|
};
|
||||||
|
}
|
10
modules2/browsers/qutebrowser/search-engines.nix
Normal file
10
modules2/browsers/qutebrowser/search-engines.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.programs.qutebrowser.searchEngines = {
|
||||||
|
dp = "https://www.drupal.org/project/{}";
|
||||||
|
du = "https://www.drupal.org/u/{}";
|
||||||
|
gh = "https://github.com/search?q={}";
|
||||||
|
mn = "https://mynixos.com/search?q={}";
|
||||||
|
nx = "https://search.nixos.org/packages?query={}";
|
||||||
|
yt = "https://www.youtube.com/results?search_query={}";
|
||||||
|
};
|
||||||
|
}
|
5
modules2/browsers/qutebrowser/settings.nix
Normal file
5
modules2/browsers/qutebrowser/settings.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.programs.qutebrowser.settings = {
|
||||||
|
colors.webpage.darkmode.enabled = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue