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:
Michal Sojka 2023-03-31 15:07:58 +02:00 committed by Ben Wolsieffer
parent 41ef696628
commit af531ba974

View file

@ -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=" ];
};
}