2021-02-14 02:38:20 +00:00
|
|
|
# Cachix
|
2023-01-28 20:49:10 +00:00
|
|
|
|
2021-04-19 02:43:37 +00:00
|
|
|
The system will automatically pull a cachix.nix at the root if one exists.
|
2021-04-22 23:10:02 +00:00
|
|
|
This is usually created automatically by a `sudo cachix use`. If you're more
|
2021-04-19 02:43:37 +00:00
|
|
|
inclined to keep the root clean, you can drop any generated files in the
|
|
|
|
`cachix` directory into the `profiles/cachix` directory without further
|
|
|
|
modification.
|
|
|
|
|
|
|
|
For example, to add your own cache, assuming the template lives in /etc/nixos,
|
|
|
|
by simply running `sudo cachix use yourcache`. Then, optionally, move
|
|
|
|
`cachix/yourcache.nix` to `profiles/cachix/yourcache.nix`
|
2021-02-14 02:38:20 +00:00
|
|
|
|
|
|
|
These caches are only added to the system after a `nixos-rebuild switch`, so it
|
2021-04-03 14:25:28 +00:00
|
|
|
is recommended to call `cachix use nrdxp` before the initial deployment, as it
|
2021-02-14 02:38:20 +00:00
|
|
|
will save a lot of build time.
|
|
|
|
|
|
|
|
In the future, users will be able to skip this step once the ability to define
|
|
|
|
the nix.conf within the flake is fully fleshed out upstream.
|