Skip to content

Conversation

mikeland73
Copy link
Contributor

@mikeland73 mikeland73 commented Mar 13, 2024

Summary

Sets up boilerplate to use nix cache and allows use via environment variable.

TODOs: (in follow ups)

  • Setup user permissions automatically to make user trusted in multi-user setups
  • Hook up to API to fetch cache url and credentials

How was it tested?

DEVBOX_NIX_BINCACHE_URI="s3://mike-test-nix-cache?region=us-west-2" devbox add hello

@mikeland73 mikeland73 requested review from gcurtis, savil and ipince March 13, 2024 17:15
// TODO: if user is logged in (or if we have token we can refresh)
// then we try to fetch the bincache URL from the API.

// DEVBOX_NIX_BINCACHE_URL seems like a friendlier name than "substituter"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amen

Base automatically changed from landau/nix-cache to main March 14, 2024 04:21
@mikeland73 mikeland73 force-pushed the landau/nix-cache-use branch from 9107439 to 6f1e520 Compare March 14, 2024 04:24
@mikeland73 mikeland73 merged commit 1373e65 into main Mar 14, 2024
@mikeland73 mikeland73 deleted the landau/nix-cache-use branch March 14, 2024 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants