Skip to content

Commit

Permalink
devenv: fixup nixos-specific cache fallback docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Oct 16, 2024
1 parent 9803535 commit 7315b25
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions devenv/src/cnix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,14 +708,20 @@ impl<'a> Nix<'a> {
b) Add binary caches to /etc/nix/nix.conf yourself by editing configuration.nix:
{{
nix.extraOptions = ''
extra-substituters = {};
extra-trusted-public-keys = {};
extra-substituters = {}
extra-trusted-public-keys = {}
'';
}}
Lastly rebuild your system
Disable automatic cache configuration in `devenv.nix`:
$ sudo nixos-rebuild switch
{{
cachix.enable = false;
}}
Lastly, rebuild your system:
$ sudo nixos-rebuild switch
", whoami::username()
, caches.caches.pull.iter().map(|cache| format!("https://{}.cachix.org", cache)).collect::<Vec<String>>().join(" ")
, caches.known_keys.values().cloned().collect::<Vec<String>>().join(" ")
Expand Down

0 comments on commit 7315b25

Please sign in to comment.