zen: added native zen-browser

This commit is contained in:
Tigor Hutasuhut 2024-11-18 21:32:31 +07:00
parent e3e09b0e6a
commit 5b8f6f675b
4 changed files with 45 additions and 7 deletions

View file

@ -587,6 +587,22 @@
"type": "indirect" "type": "indirect"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1925c603f17fc89f4c8f6bf6f631a802ad85d784",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1729392836, "lastModified": 1729392836,
@ -638,7 +654,8 @@
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur", "nur": "nur",
"rust-overlay": "rust-overlay", "rust-overlay": "rust-overlay",
"sops-nix": "sops-nix" "sops-nix": "sops-nix",
"zen-browser": "zen-browser"
} }
}, },
"rust-overlay": { "rust-overlay": {
@ -737,6 +754,24 @@
"repo": "xdg-desktop-portal-hyprland", "repo": "xdg-desktop-portal-hyprland",
"type": "github" "type": "github"
} }
},
"zen-browser": {
"inputs": {
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1727721329,
"narHash": "sha256-QYlWZwUSwrM7BuO+dXclZIwoPvBIuJr6GpFKv9XKFPI=",
"owner": "MarceColl",
"repo": "zen-browser-flake",
"rev": "e6ab73f405e9a2896cce5956c549a9cc359e5fcc",
"type": "github"
},
"original": {
"owner": "MarceColl",
"repo": "zen-browser-flake",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -14,6 +14,7 @@
]; ];
}; };
inputs = { inputs = {
zen-browser.url = "github:MarceColl/zen-browser-flake";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
neovim-nightly-overlay = { neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay"; url = "github:nix-community/neovim-nightly-overlay";
@ -45,7 +46,6 @@
}; };
outputs = outputs =
inputs@{ inputs@{
self,
nur, nur,
nixpkgs, nixpkgs,
home-manager, home-manager,
@ -57,6 +57,7 @@
... ...
}: }:
let let
system = "x86_64-linux";
commonModules = [ commonModules = [
nur.nixosModules.nur nur.nixosModules.nur
nix-flatpak.nixosModules.nix-flatpak nix-flatpak.nixosModules.nix-flatpak
@ -71,6 +72,7 @@
neovim-nightly-overlay.overlays.default neovim-nightly-overlay.overlays.default
nur.overlay nur.overlay
rust-overlay.overlays.default rust-overlay.overlays.default
(final: prev: { zen-browser = inputs.zen-browser.packages."${system}".default; })
]; ];
} }
{ {
@ -93,7 +95,7 @@
} }
]; ];
unstable = import inputs.nixpkgs-unstable { unstable = import inputs.nixpkgs-unstable {
system = "x86_64-linux"; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
}; };
in in
@ -113,7 +115,7 @@
}; };
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; inherit system;
modules = [ modules = [
./system ./system
{ {
@ -137,7 +139,7 @@
}; };
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; inherit system;
modules = [ modules = [
./system ./system
{ {
@ -161,7 +163,7 @@
}; };
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; inherit system;
modules = [ modules = [
./system ./system
{ {

View file

@ -9,6 +9,7 @@ let
in in
{ {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = [ pkgs.zen-browser ];
programs.firefox = { programs.firefox = {
enable = true; enable = true;
policies = { policies = {

View file

@ -99,7 +99,7 @@ in
flatpak = { flatpak = {
enable = true; enable = true;
zen-browser.enable = true; zen-browser.enable = false;
redisinsight.enable = true; redisinsight.enable = true;
}; };