From 54c6920e8376f5fb9c4e76f0be068af6caa8e107 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 10 Nov 2024 20:29:37 -0800 Subject: [PATCH] feat: add zen-browser source and cache --- flake.nix | 2 ++ modules/linux/core/default.nix | 19 +++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index d89c226..f412571 100755 --- a/flake.nix +++ b/flake.nix @@ -86,6 +86,8 @@ url = "github:youwen5/zen-browser-flake"; inputs.nixpkgs.follows = "nixpkgs"; }; + + zen-browser-source.url = "github:youwen5/zen-browser-source-flake"; }; outputs = diff --git a/modules/linux/core/default.nix b/modules/linux/core/default.nix index 24f93de..6b014c1 100644 --- a/modules/linux/core/default.nix +++ b/modules/linux/core/default.nix @@ -25,10 +25,6 @@ services.gnome.gnome-keyring.enable = true; nix = { - settings.experimental-features = [ - "nix-command" - "flakes" - ]; optimise.automatic = true; # gc = { # automatic = true; @@ -40,6 +36,21 @@ min-free = ${toString (100 * 1024 * 1024)} max-free = ${toString (1024 * 1024 * 1024)} ''; + + settings = { + experimental-features = [ + "nix-command" + "flakes" + ]; + substituters = [ + "https://cache.nixos.org" + "https://zen-browser.cachix.org" + ]; + trusted-public-keys = [ + "hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" + "zen-browser.cachix.org-1:z/QLGrEkiBYF/7zoHX1Hpuv0B26QrmbVBSy9yDD2tSs=" + ]; + }; }; programs.nh = {