aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspl3g <spleefer6@yandex.ru>2025-05-01 15:01:20 +0300
committerspl3g <spleefer6@yandex.ru>2025-05-01 15:16:52 +0300
commitf5d488074da9dc774b050bd35127b3dc92a790ca (patch)
tree5cf65ca538b3f2e3c779908381385340840eb835
parenta4f185292f9d040fb7a9100ea206233e6f61f9ac (diff)
feat: add zen browser config
-rw-r--r--flake.lock173
-rw-r--r--flake.nix7
-rw-r--r--home-manager/homeModules/default.nix1
-rw-r--r--home-manager/homeModules/zen-browser.nix110
4 files changed, 287 insertions, 4 deletions
diff --git a/flake.lock b/flake.lock
index cb1b2ce..d8b5098 100644
--- a/flake.lock
+++ b/flake.lock
@@ -372,6 +372,27 @@
"type": "github"
}
},
+ "home-manager_3": {
+ "inputs": {
+ "nixpkgs": [
+ "zen-browser",
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1743604125,
+ "narHash": "sha256-ZD61DNbsBt1mQbinAaaEqKaJk2RFo9R/j+eYWeGMx7A=",
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "rev": "180fd43eea296e62ae68e079fcf56aba268b9a1a",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-community",
+ "repo": "home-manager",
+ "type": "github"
+ }
+ },
"hyprcursor": {
"inputs": {
"hyprlang": [
@@ -651,6 +672,62 @@
"type": "github"
}
},
+ "niri": {
+ "inputs": {
+ "niri-stable": "niri-stable",
+ "niri-unstable": "niri-unstable",
+ "nixpkgs": "nixpkgs_2",
+ "nixpkgs-stable": "nixpkgs-stable",
+ "xwayland-satellite-stable": "xwayland-satellite-stable",
+ "xwayland-satellite-unstable": "xwayland-satellite-unstable"
+ },
+ "locked": {
+ "lastModified": 1744991948,
+ "narHash": "sha256-f4xKjzY64l6e28YExcf/V8aLYzBzDdjNI7ZZJGBBz3Y=",
+ "owner": "sodiboo",
+ "repo": "niri-flake",
+ "rev": "a70acecb35de8941bac791c82d8e214d4be70567",
+ "type": "github"
+ },
+ "original": {
+ "owner": "sodiboo",
+ "repo": "niri-flake",
+ "type": "github"
+ }
+ },
+ "niri-stable": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1740117926,
+ "narHash": "sha256-mTTHA0RAaQcdYe+9A3Jx77cmmyLFHmRoZdd8RpWa+m8=",
+ "owner": "YaLTeR",
+ "repo": "niri",
+ "rev": "b94a5db8790339cf9134873d8b490be69e02ac71",
+ "type": "github"
+ },
+ "original": {
+ "owner": "YaLTeR",
+ "ref": "v25.02",
+ "repo": "niri",
+ "type": "github"
+ }
+ },
+ "niri-unstable": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1744878694,
+ "narHash": "sha256-e3jPdRQmlgeWwDTC/wnvKgIy4Ga8KZYoxUPQ8PCNktM=",
+ "owner": "YaLTeR",
+ "repo": "niri",
+ "rev": "7884d3bfea810740fe2ca7021b102af0f049ccae",
+ "type": "github"
+ },
+ "original": {
+ "owner": "YaLTeR",
+ "repo": "niri",
+ "type": "github"
+ }
+ },
"nixos-hardware": {
"locked": {
"lastModified": 1744366945,
@@ -699,8 +776,40 @@
"type": "github"
}
},
+ "nixpkgs-stable": {
+ "locked": {
+ "lastModified": 1744440957,
+ "narHash": "sha256-FHlSkNqFmPxPJvy+6fNLaNeWnF1lZSgqVCl/eWaJRc4=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "26d499fc9f1d567283d5d56fcf367edd815dba1d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-24.11",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
"nixpkgs_2": {
"locked": {
+ "lastModified": 1744932701,
+ "narHash": "sha256-fusHbZCyv126cyArUwwKrLdCkgVAIaa/fQJYFlCEqiU=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "b024ced1aac25639f8ca8fdfc2f8c4fbd66c48ef",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "nixpkgs_3": {
+ "locked": {
"lastModified": 1744232761,
"narHash": "sha256-gbl9hE39nQRpZaLjhWKmEu5ejtQsgI5TWYrIVVJn30U=",
"owner": "nixos",
@@ -715,7 +824,7 @@
"type": "github"
}
},
- "nixpkgs_3": {
+ "nixpkgs_4": {
"locked": {
"lastModified": 1743583204,
"narHash": "sha256-F7n4+KOIfWrwoQjXrL2wD9RhFYLs2/GGe/MQY1sSdlE=",
@@ -805,12 +914,14 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"nh": "nh",
+ "niri": "niri",
"nixos-hardware": "nixos-hardware",
- "nixpkgs": "nixpkgs_2",
+ "nixpkgs": "nixpkgs_3",
"nixpkgs-small": "nixpkgs-small",
"nurpkgs": "nurpkgs",
"shimmer": "shimmer",
- "stylix": "stylix"
+ "stylix": "stylix",
+ "zen-browser": "zen-browser"
}
},
"shimmer": {
@@ -841,7 +952,7 @@
"git-hooks": "git-hooks",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager_2",
- "nixpkgs": "nixpkgs_3",
+ "nixpkgs": "nixpkgs_4",
"nur": "nur",
"systems": "systems_2",
"tinted-foot": "tinted-foot",
@@ -1059,6 +1170,60 @@
"repo": "xdg-desktop-portal-hyprland",
"type": "github"
}
+ },
+ "xwayland-satellite-stable": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1739246919,
+ "narHash": "sha256-/hBM43/Gd0/tW+egrhlWgOIISeJxEs2uAOIYVpfDKeU=",
+ "owner": "Supreeeme",
+ "repo": "xwayland-satellite",
+ "rev": "44590a416d4a3e8220e19e29e0b6efe64a80315d",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Supreeeme",
+ "ref": "v0.5.1",
+ "repo": "xwayland-satellite",
+ "type": "github"
+ }
+ },
+ "xwayland-satellite-unstable": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1744860839,
+ "narHash": "sha256-m/p0wFYey7zqlf5yEJ3g/h+4ZNPkjPsGiMZVJ09aWWw=",
+ "owner": "Supreeeme",
+ "repo": "xwayland-satellite",
+ "rev": "2b5288b4b9ad2481a033e9c3cc1205108323e7d9",
+ "type": "github"
+ },
+ "original": {
+ "owner": "Supreeeme",
+ "repo": "xwayland-satellite",
+ "type": "github"
+ }
+ },
+ "zen-browser": {
+ "inputs": {
+ "home-manager": "home-manager_3",
+ "nixpkgs": [
+ "nixpkgs"
+ ]
+ },
+ "locked": {
+ "lastModified": 1745550347,
+ "narHash": "sha256-y3ojr4sqs4cbtHNrzTK1JVoTFfyGzS+m8U5nzgHcj2U=",
+ "owner": "0xc000022070",
+ "repo": "zen-browser-flake",
+ "rev": "855ad6c6bb50dc52f496375e9f031fd0305ea7b8",
+ "type": "github"
+ },
+ "original": {
+ "owner": "0xc000022070",
+ "repo": "zen-browser-flake",
+ "type": "github"
+ }
}
},
"root": "root",
diff --git a/flake.nix b/flake.nix
index 3031d1d..8eff9d0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -38,6 +38,13 @@
# Hardware configs for my laptop
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
+ zen-browser = {
+ url = "github:0xc000022070/zen-browser-flake";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ niri.url = "github:sodiboo/niri-flake";
+
shimmer = {
url = "github:nuclearcodecat/shimmer";
flake = false;
diff --git a/home-manager/homeModules/default.nix b/home-manager/homeModules/default.nix
index 05cb946..952d2b9 100644
--- a/home-manager/homeModules/default.nix
+++ b/home-manager/homeModules/default.nix
@@ -14,5 +14,6 @@
./fuzzel.nix
./stylix.nix
./exwm.nix
+ ./zen-browser.nix
];
}
diff --git a/home-manager/homeModules/zen-browser.nix b/home-manager/homeModules/zen-browser.nix
new file mode 100644
index 0000000..433e634
--- /dev/null
+++ b/home-manager/homeModules/zen-browser.nix
@@ -0,0 +1,110 @@
+{ pkgs, config, lib, inputs, ... }:
+
+{
+ imports = [
+ inputs.zen-browser.homeModules.beta
+ ];
+
+ options = {
+ zen-browser.enable = lib.mkEnableOption "enable zen-browser";
+ };
+
+ config = lib.mkIf config.zen-browser.enable {
+ programs.zen-browser = {
+ enable = true;
+ policies = {
+ AutofillAddressEnabled = false;
+ AutofillCreditCardEnabled = false;
+ DisableAppUpdate = true;
+ DisableFeedbackCommands = true;
+ DisableFirefoxStudies = true;
+ DisablePocket = true; # save webs for later reading
+ DisableTelemetry = true;
+ DontCheckDefaultBrowser = true;
+ NoDefaultBookmarks = true;
+ OfferToSaveLogins = false;
+ };
+
+ profiles.ZZZ = {
+ isDefault = true;
+ extensions = {
+ packages = with pkgs.nur.repos.rycee.firefox-addons; [
+ bitwarden
+ ublock-origin
+ sponsorblock
+ return-youtube-dislikes
+ firefox-color
+ tampermonkey
+ duckduckgo-privacy-essentials
+ mal-sync
+ sidebery
+ ];
+
+ force = true;
+ };
+
+ settings = {
+ "svg.context-properties.content.enabled" = true;
+ "browser.search.suggest.enabled" = true;
+ "extensions.autoDisableScopes" = 0;
+ };
+
+ search = {
+ force = true;
+ engines = {
+ "Brave" = {
+ urls = [
+ { template = "https://search.brave.com/search?q={searchTerms}"; }
+ {
+ type = "application/x-suggestions+json";
+ template = "https://search.brave.com/api/suggest?q={searchTerms}";
+ }
+ ];
+
+ icon = "https://cdn.search.brave.com/serp/v2/_app/immutable/assets/safari-pinned-tab.539899c7.svg";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!br" ];
+ };
+ "NixOS Packages" = {
+ urls = [{ template = "https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query={searchTerms}"; }];
+ icon = "https://nixos.org/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!ns" ];
+ };
+ "NixOS Options" = {
+ urls = [{ template = "https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query={searchTerms}"; }];
+ icon = "https://nixos.org/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!no" ];
+ };
+ "HomeManager" = {
+ urls = [{ template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master"; }];
+ icon = "https://github.com/mipmip/home-manager-option-search/blob/main/images/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!hs" ];
+ };
+ "NixWiki" = {
+ urls = [{ template = "https://wiki.nixos.org/w/index.php?search={searchTerms}"; }];
+ icon = "https://nixos.org/favicon.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!nw" ];
+ };
+ "Kinopoisk" = {
+ urls = [{ template = "https://www.kinopoisk.ru/index.php?kp_query={searchTerms}"; }];
+ icon = "https://www.kinopoisk.ru/favicon.ico";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!ks" ];
+ };
+ "MDN Docs" = {
+ urls = [{ template = "https://developer.mozilla.org/en-US/search?q={searchTerms}"; }];
+ icon = "https://developer.mozilla.org/favicon-48x48.bc390275e955dacb2e65.png";
+ updateInterval = 24 * 60 * 60 * 1000;
+ definedAliases = [ "!md" ];
+ };
+ };
+ default = "Brave";
+ };
+ };
+ };
+ };
+}