mirror of
https://github.com/lopsided98/nix-ros-overlay.git
synced 2025-06-10 17:54:49 +03:00
Configure the Cachix binary cache in flake.nix
With this, Flake users will be automatically asked whether they want to use the binary cache and its key. If they answer yes, the cache will be automatically used without any needed configuration. Additionally, the users will be asked whether they want to mark this settings as permanent. In that case the cache will be used automatically in the future without any interaction. This means that when anybody runs a command like this: nix shell github:lopsided98/nix-ros-overlay#humble.rviz2 they will automatically get the packages from the binary cache.
This commit is contained in:
parent
41ef696628
commit
af531ba974
1 changed files with 6 additions and 0 deletions
|
@ -27,4 +27,10 @@
|
|||
"'nix-ros-overlay.nixosModule' is deprecated, use 'nix-ros-overlay.nixosModules.default' instead"
|
||||
self.nixosModules.default;
|
||||
};
|
||||
|
||||
nixConfig = {
|
||||
extra-substituters = [ "https://ros.cachix.org" ];
|
||||
extra-trusted-public-keys = [ "ros.cachix.org-1:dSyZxI8geDCJrwgvCOHDoAfOm5sV1wCPjBkKL+38Rvo=" ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue