From 7d5739f11e6a18d3f70a50553a4cfbda6559f181 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Sun, 14 Apr 2024 19:49:33 +0100 Subject: [PATCH] Finished the Epiphany config. Thank you: jtojnar @ NixOS Discourse --- home.nix | 67 ++++++++++++++++++++++++-------------------- scripts/wine-arch.sh | 7 +++++ 2 files changed, 44 insertions(+), 30 deletions(-) create mode 100644 scripts/wine-arch.sh diff --git a/home.nix b/home.nix index 17df0342..dfc957de 100644 --- a/home.nix +++ b/home.nix @@ -2,7 +2,7 @@ # man home-configuration.nix -{ config, pkgs, ... }: +{ config, pkgs, lib, ... }: { # ======================================================================= @@ -390,40 +390,47 @@ icon-theme = "Papirus"; }; - "org/gnome/epiphany" = { # GNOME Web - "web/enable-adblock" = true; - "web/enable-popups" = false; - "web/ask-on-download" = true; - "web/enable-spell-checking" = true; - "web/show-developer-actions" = true; - "web/enable-itp" = true; - "web/enable-website-data-storage" = true; - "web/remember-passwords" = false; - "web/use-gnome-fonts" = false; - "web/monospace-font" = "JetBrainsMono Nerd Font Mono 12"; + "org/gnome/epiphany/web" = { + enable-adblock = true; + enable-popups = false; + ask-on-download = true; + enable-spell-checking = true; + show-developer-actions = true; + enable-itp = true; + enable-website-data-storage = true; + remember-passwords = false; + use-gnome-fonts = false; + monospace-font = "JetBrainsMono Nerd Font Mono 12"; + }; + "org/gnome/epiphany" = { # GNOME Web homepage-url = "about:newtab"; start-in-incognito-mode = false; restore-session-policy = "always"; use-google-search-suggestions = false; - # TODO: Fix search-engine-providers broken code. - # search-engine-providers = [ - # { - # url = "https://duckduckgo.com/?q=%s&t=epiphany"; - # bang = "!d"; - # name = "DuckDuckGo"; - # } - # # [ - # # url: "https://www.google.com/search?q=%s" - # # bang: "!g" - # # name: "Google" - # # ] - # # [ - # # url: "https://search.nixos.org/packages?channel=23.11&from=0&size=50&sort=relevance&type=packages&query=%s" - # # bang: "!np" - # # name: "Nix Packages" - # # ] - # ]; + + search-engine-providers = with lib.hm.gvariant; [ + [ + (mkDictionaryEntry["url" (mkVariant "https://duckduckgo.com/?q=%s&t=epiphany")]) + (mkDictionaryEntry["bang" (mkVariant "!d")]) + (mkDictionaryEntry["name" (mkVariant "DuckDuckGo")]) + ] + [ + (mkDictionaryEntry["url" (mkVariant "https://www.google.com/search?q=%s")]) + (mkDictionaryEntry["bang" (mkVariant "!g")]) + (mkDictionaryEntry["name" (mkVariant "Google")]) + ] + [ + (mkDictionaryEntry["url" (mkVariant "https://search.nixos.org/packages?channel=23.11&from=0&size=50&sort=relevance&type=packages&query=%s")]) + (mkDictionaryEntry["bang" (mkVariant "!np")]) + (mkDictionaryEntry["name" (mkVariant "Nix Packages")]) + ] + [ + (mkDictionaryEntry["url" (mkVariant "https://www.startpage.com/search?q=%s")]) + (mkDictionaryEntry["bang" (mkVariant "!s")]) + (mkDictionaryEntry["name" (mkVariant "StartPage")]) + ] + ]; content-filters = [ "https://easylist-downloads.adblockplus.org/easylist_min_content_blocker.json" diff --git a/scripts/wine-arch.sh b/scripts/wine-arch.sh new file mode 100644 index 00000000..b73b06bb --- /dev/null +++ b/scripts/wine-arch.sh @@ -0,0 +1,7 @@ +# INSTALL WINE ON ARCH +sudo pacman -S --needed wine-staging giflib lib32-giflib libpng lib32-libpng libldap lib32-libldap gnutls lib32-gnutls \ +mpg123 lib32-mpg123 openal lib32-openal v4l-utils lib32-v4l-utils libpulse lib32-libpulse libgpg-error \ +lib32-libgpg-error alsa-plugins lib32-alsa-plugins alsa-lib lib32-alsa-lib libjpeg-turbo lib32-libjpeg-turbo \ +sqlite lib32-sqlite libxcomposite lib32-libxcomposite libxinerama lib32-libgcrypt libgcrypt lib32-libxinerama \ +ncurses lib32-ncurses ocl-icd lib32-ocl-icd libxslt lib32-libxslt libva lib32-libva gtk3 \ +lib32-gtk3 gst-plugins-base-libs lib32-gst-plugins-base-libs vulkan-icd-loader lib32-vulkan-icd-loader