my nixos dotfiles :3 (git.koi.rip mirror) git.koi.rip/koi/dotfiles
linux dotfiles neovim nixos catppuccin

zen-browser: init wow thankyou robin boo wow

+194 -10
+26 -1
flake.lock
··· 307 "iamb": "iamb", 308 "niri": "niri", 309 "nixpkgs": "nixpkgs_2", 310 - "systems": "systems_2" 311 } 312 }, 313 "rust-overlay": { ··· 388 "original": { 389 "owner": "Supreeeme", 390 "repo": "xwayland-satellite", 391 "type": "github" 392 } 393 }
··· 307 "iamb": "iamb", 308 "niri": "niri", 309 "nixpkgs": "nixpkgs_2", 310 + "systems": "systems_2", 311 + "zen-browser": "zen-browser" 312 } 313 }, 314 "rust-overlay": { ··· 389 "original": { 390 "owner": "Supreeeme", 391 "repo": "xwayland-satellite", 392 + "type": "github" 393 + } 394 + }, 395 + "zen-browser": { 396 + "inputs": { 397 + "home-manager": [ 398 + "home-manager" 399 + ], 400 + "nixpkgs": [ 401 + "nixpkgs" 402 + ] 403 + }, 404 + "locked": { 405 + "lastModified": 1768847523, 406 + "narHash": "sha256-Rpe8L91vImYuAH5Ct5S0Ua/AVYWEx2iwbSw5/zo0DlE=", 407 + "owner": "0xc000022070", 408 + "repo": "zen-browser-flake", 409 + "rev": "c46511888bcce28b5b54a82cb41d0ef75cd93965", 410 + "type": "github" 411 + }, 412 + "original": { 413 + "owner": "0xc000022070", 414 + "ref": "beta", 415 + "repo": "zen-browser-flake", 416 "type": "github" 417 } 418 }
+8
flake.nix
··· 33 inputs.nixpkgs.follows = "nixpkgs"; 34 }; 35 36 agenix = { 37 url = "github:ryantm/agenix"; 38 inputs.nixpkgs.follows = "nixpkgs";
··· 33 inputs.nixpkgs.follows = "nixpkgs"; 34 }; 35 36 + zen-browser = { 37 + url = "github:0xc000022070/zen-browser-flake/beta"; 38 + inputs = { 39 + nixpkgs.follows = "nixpkgs"; 40 + home-manager.follows = "home-manager"; 41 + }; 42 + }; 43 + 44 agenix = { 45 url = "github:ryantm/agenix"; 46 inputs.nixpkgs.follows = "nixpkgs";
-7
home/modules/programs/chromium.nix
··· 21 mode = "0500"; 22 path = "${config.home.homeDirectory}/.local/bin/chromium"; 23 }; 24 - 25 - home.sessionVariables.DEFAULT_BROWSER = "chromium"; 26 - xdg.mimeApps.defaultApplications = { 27 - "text/html" = [ "chromium-browser.desktop" ]; 28 - "x-scheme-handler/http" = [ "chromium-browser.desktop" ]; 29 - "x-scheme-handler/https" = [ "chromium-browser.desktop" ]; 30 - }; 31 }
··· 21 mode = "0500"; 22 path = "${config.home.homeDirectory}/.local/bin/chromium"; 23 }; 24 }
+1
home/modules/programs/default.nix
··· 23 24 ./vesktop.nix 25 ./chromium.nix 26 ]; 27 }
··· 23 24 ./vesktop.nix 25 ./chromium.nix 26 + ./zen-browser.nix 27 ]; 28 }
+7 -2
home/modules/programs/iamb.nix
··· 1 - { pkgs, inputs, ... }: 2 3 { 4 programs.iamb = { ··· 7 8 settings = { 9 profiles.user.user_id = "@koi:system72.dev"; 10 - dirs.downloads = "/tmp/downloads"; 11 settings = { 12 user_gutter_width = 20; 13 username_display = "displayname";
··· 1 + { 2 + config, 3 + pkgs, 4 + inputs, 5 + ... 6 + }: 7 8 { 9 programs.iamb = { ··· 12 13 settings = { 14 profiles.user.user_id = "@koi:system72.dev"; 15 + dirs.downloads = config.xdg.userDirs.download; 16 settings = { 17 user_gutter_width = 20; 18 username_display = "displayname";
+140
home/modules/programs/zen-browser.nix
···
··· 1 + { config, inputs, ... }: 2 + 3 + { 4 + imports = [ inputs.zen-browser.homeModules.beta ]; 5 + 6 + programs.zen-browser = { 7 + enable = true; 8 + 9 + profiles.default = { 10 + id = 0; 11 + isDefault = true; 12 + search = { 13 + force = true; 14 + default = "searxng"; 15 + engines.searxng = { 16 + name = "SearXNG"; 17 + iconMapObj."261" = "https://searxng.system72.dev/static/themes/simple/img/favicon.png"; 18 + definedAliases = [ "@searxng" ]; 19 + urls = [ { template = "https://searxng.system72.dev/search?q={searchTerms}"; } ]; 20 + }; 21 + }; 22 + settings = { 23 + "browser.search.separatePrivateDefault" = false; 24 + "browser.tabs.groups.enabled" = true; 25 + "browser.tabs.warnOnClose" = false; 26 + "devtools.theme" = "dark"; 27 + "font.name.serif.x-western" = "Noto Serif"; 28 + "general.autoScroll" = true; 29 + "layout.spellcheckDefault" = 0; 30 + "privacy.userContext.enabled" = false; # container tabs 31 + "zen.glance.enabled" = false; 32 + "zen.tabs.show-newtab-vertical" = false; 33 + "zen.welcome-screen.seen" = true; 34 + "zen.urlbar.behavior" = "float"; 35 + "zen.view.use-single-toolbar" = false; 36 + "zen.view.sidebar-expanded" = true; 37 + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; 38 + "media.videocontrols.picture-in-picture.video-toggle.enabled" = true; 39 + "layout.css.prefers-color-scheme.content-override" = 0; # dark mode 40 + }; 41 + userChrome = '' 42 + :root { 43 + --zen-main-browser-background: #191E21 !important; 44 + --zen-toolbar-element-bg: #262F33 !important; 45 + --tab-selected-bgcolor: #374145 !important; 46 + --toolbox-textcolor: #F8F9E8 !important; 47 + --sidebar-text-color: #839e9a !important; 48 + --toolbarbutton-icon-fill: #6F8788 !important; 49 + } 50 + label.toolbarbutton-text { 51 + color: #6F8788 !important; 52 + } 53 + label.zen-current-workspace-indicator-name { 54 + color: #ADC9BC !important; 55 + } 56 + ''; 57 + }; 58 + 59 + policies = 60 + let 61 + mkExtension = 62 + { 63 + id, 64 + pinned ? false, 65 + private ? false, 66 + }: 67 + { 68 + install_url = "https://addons.mozilla.org/firefox/downloads/latest/${id}/latest.xpi"; 69 + installation_mode = "force_installed"; 70 + default_area = if pinned then "navbar" else "menupanel"; 71 + private_browsing = private; 72 + }; 73 + 74 + mkExtensionSettings = builtins.mapAttrs ( 75 + _: e: if builtins.isAttrs e then e else mkExtension { id = e; } 76 + ); 77 + in 78 + { 79 + PromptForDownloadLocation = true; 80 + DefaultDownloadDirectory = config.xdg.userDirs.download; 81 + DisableAppUpdate = true; 82 + DisableFeedbackCommands = true; 83 + DisableForgetButton = true; 84 + DisableFirefoxAccounts = true; 85 + DisableFirefoxStudies = true; 86 + DisableFirefoxScreenshots = true; 87 + DisableFirefoxPocket = true; 88 + DisableSafeMode = true; 89 + DisableTelemetry = true; 90 + DontCheckDefaultBrowser = true; 91 + NoDefaultBookmarks = true; 92 + OfferToSaveLogins = false; 93 + PictureInPicture = true; 94 + EnableTrackingProtection = { 95 + Value = true; 96 + Locked = true; 97 + Cryptomining = true; 98 + Fingerprinting = true; 99 + EmailTracking = true; 100 + SuspectedFingerprinting = true; 101 + }; 102 + GenerativeAI = { 103 + Enabled = false; 104 + Locked = true; 105 + }; 106 + ExtensionSettings = mkExtensionSettings { 107 + "uBlock0@raymondhill.net" = mkExtension { 108 + id = "ublock-origin"; 109 + pinned = true; 110 + private = true; 111 + }; 112 + "{446900e4-71c2-419f-a6a7-df9c091e268b}" = mkExtension { 113 + id = "bitwarden-password-manager"; 114 + pinned = true; 115 + }; 116 + "addon@darkreader.org" = mkExtension { 117 + id = "darkreader"; 118 + pinned = true; 119 + }; 120 + "{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}" = mkExtension { 121 + id = "styl-us"; 122 + pinned = true; 123 + }; 124 + "redirector@einaregilsson.com" = mkExtension { 125 + id = "redirector"; 126 + pinned = true; 127 + private = true; 128 + }; 129 + "{a29c89d0-8d34-47c1-8c30-6e4ade95bd1a}" = "wide-github-chrome"; 130 + }; 131 + }; 132 + }; 133 + 134 + home.sessionVariables.DEFAULT_BROWSER = "zen-beta"; 135 + xdg.mimeApps.defaultApplications = { 136 + "text/html" = [ "zen-beta.desktop" ]; 137 + "x-scheme-handler/http" = [ "zen-beta.desktop" ]; 138 + "x-scheme-handler/https" = [ "zen-beta.desktop" ]; 139 + }; 140 + }
+12
home/modules/xdg.nix
··· 4 xdg = { 5 mimeApps.enable = true; 6 7 portal = { 8 enable = true; 9 extraPortals = with pkgs; [
··· 4 xdg = { 5 mimeApps.enable = true; 6 7 + userDirs = { 8 + enable = true; 9 + download = "/tmp/downloads"; 10 + desktop = "/tmp/garbage"; 11 + documents = "/tmp/garbage"; 12 + music = "/tmp/garbage"; 13 + pictures = "/tmp/garbage"; 14 + publicShare = "/tmp/garbage"; 15 + templates = "/tmp/garbage"; 16 + videos = "/tmp/garbage"; 17 + }; 18 + 19 portal = { 20 enable = true; 21 extraPortals = with pkgs; [