Skip to content

Commit

Permalink
Add additional nix binary caches
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Nov 30, 2022
1 parent ac5f33f commit 26dd988
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
17 changes: 17 additions & 0 deletions home/base/nix/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
{ pkgs, ... }:

{
nix = {
package = pkgs.nix;
settings = {
substituters = [
"https://christianharke.cachix.org/"
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [
"christianharke.cachix.org-1:TzmbiNLRcH8G0932XRlQzh8GPvuV9pJcHLqLnzznLKU="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
};
nixpkgs.config = import ./nixpkgs-config.nix;
xdg.configFile."nixpkgs/config.nix".source = ./nixpkgs-config.nix;
}
16 changes: 13 additions & 3 deletions nixos/base/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,24 @@
];

nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
gc = {
automatic = true;
dates = "04:00";
options = "--delete-older-than 7d";
};
settings = {
experimental-features = [ "nix-command" "flakes" ];
substituters = [
"https://christianharke.cachix.org/"
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [
"christianharke.cachix.org-1:TzmbiNLRcH8G0932XRlQzh8GPvuV9pJcHLqLnzznLKU="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
};
};

nixpkgs.config.allowUnfree = true;
Expand Down

0 comments on commit 26dd988

Please sign in to comment.