From ae71c950edc3240e2dea3496eff5ac01107c5b32 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Thu, 19 Sep 2024 13:23:21 +0200 Subject: [PATCH] browsers: add zen browser flake --- flake.lock | 37 ++++++++++++++++++++++++++++++- flake.nix | 3 ++- home/common/programs/browsers.nix | 3 ++- 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index f20de57..c0edfdc 100644 --- a/flake.lock +++ b/flake.lock @@ -525,6 +525,22 @@ "type": "github" } }, + "nixpkgs_3": { + "locked": { + "lastModified": 1725634671, + "narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixvim": { "inputs": { "devshell": "devshell", @@ -583,7 +599,8 @@ "nixvim": "nixvim", "sops-nix": "sops-nix", "stylix": "stylix", - "wezterm": "wezterm" + "wezterm": "wezterm", + "zen-browser": "zen-browser" } }, "rust-overlay": { @@ -753,6 +770,24 @@ "type": "github" } }, + "zen-browser": { + "inputs": { + "nixpkgs": "nixpkgs_3" + }, + "locked": { + "lastModified": 1726001766, + "narHash": "sha256-ADvEWfo0AuHR06ah1nnzOyhsG05/b5QpUc7vFNbiEfM=", + "owner": "MarceColl", + "repo": "zen-browser-flake", + "rev": "06505a088396e2c0b9ad100302502783a6bcdb40", + "type": "github" + }, + "original": { + "owner": "MarceColl", + "repo": "zen-browser-flake", + "type": "github" + } + }, "zlib": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index caa5efc..5d44acc 100644 --- a/flake.nix +++ b/flake.nix @@ -19,6 +19,7 @@ url = "github:wez/wezterm/main?dir=nix"; inputs.nixpkgs.follows = "nixpkgs"; }; + zen-browser.url = "github:MarceColl/zen-browser-flake"; nixos-hardware.url = "github:NixOS/nixos-hardware"; }; @@ -41,7 +42,7 @@ home-manager.sharedModules = [ nixvim.homeManagerModules.nixvim ]; - home-manager.extraSpecialArgs = { inherit inputs; }; + home-manager.extraSpecialArgs = { inherit inputs system; }; } { _module.args = { inherit hostname username; }; } ]; diff --git a/home/common/programs/browsers.nix b/home/common/programs/browsers.nix index eb2a473..928f121 100644 --- a/home/common/programs/browsers.nix +++ b/home/common/programs/browsers.nix @@ -1,6 +1,7 @@ -{ ... }: +{ inputs, system, ... }: { programs.firefox.enable = true; programs.chromium.enable = true; + home.packages = [ inputs.zen-browser.packages."${system}".specific ]; }