diff --git a/system/home/browser/default.nix b/system/home/browser/default.nix index 4f0a6bbf..efdfeee1 100644 --- a/system/home/browser/default.nix +++ b/system/home/browser/default.nix @@ -1,4 +1,7 @@ { ... }: { - imports = [ ./firefox.nix ]; + imports = [ + ./firefox.nix + ./qutebrowser.nix + ]; } diff --git a/system/home/browser/qutebrowser.nix b/system/home/browser/qutebrowser.nix new file mode 100644 index 00000000..651db35d --- /dev/null +++ b/system/home/browser/qutebrowser.nix @@ -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 + # { }; + }; +} diff --git a/system/home/hyprland.nix b/system/home/hyprland.nix index e2098028..ee9ea5d2 100644 --- a/system/home/hyprland.nix +++ b/system/home/hyprland.nix @@ -260,7 +260,7 @@ "center, xdg-desktop-portal-gtk" # Workspace rules - "workspace 2, firefox" # Browser + "workspace 2, (firefox|org.qutebrowser.qutebrowser)" # Browser "workspace 3, (libreoffice|soffice)(.*)" # Documents "workspace 4, (signal|com.rtosta.zapzap|WebCord|teams-for-linux|twinkle)" # Messaging "workspace 5, (org.remmina.Remmina|Nxplayer.bin)" # Remote Desktop diff --git a/system/work.nix b/system/work.nix index e8f53278..54bedeb0 100644 --- a/system/work.nix +++ b/system/work.nix @@ -4,7 +4,10 @@ { config, ... }: { 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 = { proton.primary = lib.mkForce false; outlook.primary = lib.mkForce true;