Skip to content

Commit

Permalink
hosts: features: required: nix: enable extra substituters
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Salvador <[email protected]>
  • Loading branch information
otavio committed Apr 10, 2023
1 parent 73c89bf commit 0eb2fbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
12 changes: 0 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,4 @@
'';
};
});

nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://otavio-nix-config.cachix.org"
];

extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"otavio-nix-config.cachix.org-1:4HXl0KPGJ0+tkTUn/0tHRpz1wJst9MxovLjKbsPnqS4="
];
};
}
11 changes: 9 additions & 2 deletions hosts/features/required/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
{
nix = {
settings = {
substituters = [
# Caches in trusted-substituters can be used by unprivileged users i.e. in
# flakes but are not enabled by default.
trusted-substituters = [
"https://nix-community.cachix.org"
"https://cache.garnix.io"
"https://otavio-nix-config.cachix.org"
"https://numtide.cachix.org"
];

trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
"otavio-nix-config.cachix.org-1:4HXl0KPGJ0+tkTUn/0tHRpz1wJst9MxovLjKbsPnqS4="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
];

trusted-users = [ "root" "@wheel" ];
Expand Down

0 comments on commit 0eb2fbc

Please sign in to comment.