feat: add zen-browser source and cache

This commit is contained in:
Youwen Wu 2024-11-10 20:29:37 -08:00
parent ae7223b213
commit 54c6920e83
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 17 additions and 4 deletions

View file

@ -86,6 +86,8 @@
url = "github:youwen5/zen-browser-flake"; url = "github:youwen5/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
zen-browser-source.url = "github:youwen5/zen-browser-source-flake";
}; };
outputs = outputs =

View file

@ -25,10 +25,6 @@
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
nix = { nix = {
settings.experimental-features = [
"nix-command"
"flakes"
];
optimise.automatic = true; optimise.automatic = true;
# gc = { # gc = {
# automatic = true; # automatic = true;
@ -40,6 +36,21 @@
min-free = ${toString (100 * 1024 * 1024)} min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 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 = { programs.nh = {