-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cache, enable for sanctuary-router
this allows us to pull from cachix for things that really want a binary cache, like the router, which is super slow to build the kernel.
- Loading branch information
1 parent
680baf7
commit 2dd67e2
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ config, lib, ... }: | ||
|
||
with lib; | ||
{ | ||
options = { | ||
local.cache.enable = mkEnableOption "personal cachix binary cache"; | ||
}; | ||
|
||
config = mkIf (config.local.cache.enable) { | ||
nix = { | ||
settings = { | ||
substituters = [ | ||
"https://directxman12.cachix.org" | ||
]; | ||
trusted-public-keys = [ | ||
"directxman12.cachix.org-1:JSNhBrYD9cUW/afQzCPaEYtCJNIVhpJeO0ewTDP2j5U=" | ||
]; | ||
}; | ||
}; | ||
}; | ||
} |