Add initial config for qutebrowser

Still needs some work before it can be a daily driver
This commit is contained in:
Evie Litherland-Smith 2024-11-14 15:16:02 +00:00
parent 6aaf6488db
commit 2c9e736bd7
4 changed files with 53 additions and 3 deletions

View file

@ -1,4 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ ./firefox.nix ]; imports = [
./firefox.nix
./qutebrowser.nix
];
} }

View file

@ -0,0 +1,44 @@
{
config,
lib,
pkgs,
...
}:
{
programs.qutebrowser = {
enable = true;
settings = {
changelog_after_upgrade = "major";
# confirm_quit = "downloads";
content = {
autoplay = false;
blocking.enabled = true;
cookies.accept = "no-unknown-3rdparty";
headers.do_not_track = true;
};
downloads.location.directory = config.xdg.userDirs.download;
new_instance_open_target = "tab";
qt.highdpi = true;
scrolling.smooth = true;
# spellcheck.languages = [ "en-GB" ];
tabs = {
last_close = "blank";
show = "multiple";
};
url.default_page = lib.mkDefault "about:blank";
window.hide_decoration = true;
};
searchEngines = {
w = "https://en.wikipedia.org/wiki/Special:Search?search={}&go=Go&ns0=1";
aw = "https://wiki.archlinux.org/?search={}";
nw = "https://wiki.nixos.org/index.php?search={}";
gh = "https://github.com/search?q={}";
fh = "https://flathub.org/apps/search?q={}";
py = "https://pypi.org/search/?q={}";
};
# quickmarks =
# let
# in
# { };
};
}

View file

@ -260,7 +260,7 @@
"center, xdg-desktop-portal-gtk" "center, xdg-desktop-portal-gtk"
# Workspace rules # Workspace rules
"workspace 2, firefox" # Browser "workspace 2, (firefox|org.qutebrowser.qutebrowser)" # Browser
"workspace 3, (libreoffice|soffice)(.*)" # Documents "workspace 3, (libreoffice|soffice)(.*)" # Documents
"workspace 4, (signal|com.rtosta.zapzap|WebCord|teams-for-linux|twinkle)" # Messaging "workspace 4, (signal|com.rtosta.zapzap|WebCord|teams-for-linux|twinkle)" # Messaging
"workspace 5, (org.remmina.Remmina|Nxplayer.bin)" # Remote Desktop "workspace 5, (org.remmina.Remmina|Nxplayer.bin)" # Remote Desktop

View file

@ -4,7 +4,10 @@
{ config, ... }: { config, ... }:
{ {
imports = [ ./home/openfortivpn/ukaea.nix ]; imports = [ ./home/openfortivpn/ukaea.nix ];
programs.git.userEmail = config.accounts.email.accounts.outlook.address; programs = {
git.userEmail = config.accounts.email.accounts.outlook.address;
qutebrowser.settings.url.default_page = "https://nucleus.ukaea.uk";
};
accounts.email.accounts = { accounts.email.accounts = {
proton.primary = lib.mkForce false; proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true; outlook.primary = lib.mkForce true;