diff --git a/home/modules/gui.nix b/home/modules/gui.nix index 85bdba8..d212c11 100644 --- a/home/modules/gui.nix +++ b/home/modules/gui.nix @@ -52,11 +52,43 @@ in { programs.firefox = { enable = (! pkgs.stdenv.hostPlatform.isDarwin); package = ffPkgs; + policies = { + DisableAppUpdate = true; + }; profiles = { default = { - isDefault = true; + bookmarks = import ./gui/bookmarks.nix; id = 0; - search.default = "DuckDuckGo"; + isDefault = true; + search = { + default = "DuckDuckGo"; + force = true; + engines = { + Google.metaData.alias = "@g"; + "Nix Packages" = { + urls = [{ + template = "https://search.nixos.org/packages"; + params = [ + { name = "type"; value = "packages"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@np" ]; + }; + "Nix Options" = { + urls = [{ + template = "https://search.nixos.org/options"; + params = [ + { name = "type"; value = "packages"; } + { name = "query"; value = "{searchTerms}"; } + ]; + }]; + icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; + definedAliases = [ "@no" ]; + }; + }; + }; settings = { "app.update.auto" = false; "browser.ctrlTab.sortByRecentlyUsed" = true; diff --git a/home/modules/gui/bookmarks.nix b/home/modules/gui/bookmarks.nix new file mode 100644 index 0000000..7f72a34 --- /dev/null +++ b/home/modules/gui/bookmarks.nix @@ -0,0 +1,95 @@ +[ { + name = "Toolbar"; + toolbar = true; + bookmarks = [ { + name = "Ansible"; + bookmarks = [ { + name = "Collection Index"; + url = "https://docs.ansible.com/ansible/latest/collections/index.html"; + } ]; + } { + name = "Church"; + bookmarks = [ { + name = "DC4K"; + url = "https://www.dc4k.org/leaderzone/articles"; + } ]; + } { + name = "Katie"; + bookmarks = [ { + name = "Sports Forms"; + url = "https://midlothianisd.rankone.com/New/NewStudentList.aspx"; + } { + name = "Skyward"; + url = "https://skyward.iscorp.com/MidlothianISDTXStuSTS/Session/Signin?area=Home&controller=Home&action=Index&logoutreason=TimedOut"; + } ]; + } { + name = "Nix"; + bookmarks = [ { + name = "Package Versions"; + url = "https://lazamar.co.uk/nix-versions/?channel=nixpkgs-unstable&package=python3"; + } { + name = "Channel status"; + url = "https://status.nixos.org/"; + } { + name = "Home Manager options"; + url = "https://nix-community.github.io/home-manager/options.xhtml"; + } { + name = "Flake Parts"; + url = "https://community.flake.parts/"; + } { + name = "Language ref"; + url = "https://nix.dev/manual/nix/latest/language/index.html"; + } { + name = "Builtin functions"; + url = "https://nix.dev/manual/nix/latest/language/builtins.html"; + } { + name = "Nixpkgs functions"; + url = "https://ryantm.github.io/nixpkgs/functions/library/strings/#sec-functions-library-strings"; + } { + name = "NUR search"; + url = "https://nur.nix-community.org/"; + } ]; + } { + name = "Rust"; + bookmarks = [ { + name = "Learn Rust"; + url = "https://www.rust-lang.org/learn"; + } { + name = "Rust by Example"; + url = "https://doc.rust-lang.org/rust-by-example/hello.html"; + } { + name = "Iced"; + url = "https://docs.rs/iced/latest/iced/"; + } ]; + } { + name = "Shopping"; + bookmarks = [ { + name = "Cables"; + url = "https://www.pchcables.com"; + } ]; + } { + name = "SubTo"; + bookmarks = [ { + name = "Kajabi"; + url = "https://www.subtocourse.com/login"; + } { + name = "SubTo Fund"; + url = "https://frontend.koreconx.com/auth/login"; + } { + name = "Creive Title"; + url = "https://getcreativetitle.com/"; + } { + name = "REI Scripts"; + url = "https://reiconveyorbelt.com/no-excuses/"; + } ]; + } { + name = "Tools"; + bookmarks = [ { + name = "Password Hash"; + url = "https://unix4lyfe.org/crypt/"; + } { + name = "Keymap editor"; + url = "https://nickcoutsos.github.io/keymap-editor/"; + } ]; + } ]; +} ]