Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devenv: fixup nixos-specific cache fallback docs #1532

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading