Skip to content

Commit

Permalink
add shared trusted caches (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq authored Oct 8, 2024
1 parent b7404fb commit a2a8f68
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
13 changes: 2 additions & 11 deletions darwin/mixins/trusted-nix-caches.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
# Caches in trusted-substituters can be used by unprivileged users i.e. in
# flakes but are not enabled by default.
nix.settings.trusted-substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://numtide.cachix.org"
];
nix.settings.trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
imports = [
../../shared/mixins/trusted-nix-caches.nix
];
}
13 changes: 2 additions & 11 deletions nixos/mixins/trusted-nix-caches.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
# Caches in trusted-substituters can be used by unprivileged users i.e. in
# flakes but are not enabled by default.
nix.settings.trusted-substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://numtide.cachix.org"
];
nix.settings.trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
imports = [
../../shared/mixins/trusted-nix-caches.nix
];
}
14 changes: 14 additions & 0 deletions shared/mixins/trusted-nix-caches.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
# Caches in trusted-substituters can be used by unprivileged users i.e. in
# flakes but are not enabled by default.
nix.settings.trusted-substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://numtide.cachix.org"
];
nix.settings.trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
];
}

0 comments on commit a2a8f68

Please sign in to comment.