Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Created March 19, 2019 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/3187e5940d9e4997bb5d6347ad554b0b to your computer and use it in GitHub Desktop.
Save CMCDragonkai/3187e5940d9e4997bb5d6347ad554b0b to your computer and use it in GitHub Desktop.
Nix Snapshots

The basic idea is that right now when pinning Nixpkgs, you pin into specific tar archives of Nix commits.

If instead you could just point to some virtual address that resolved to a checkout of a specific commit.

Then each NixOS system would just maintain a nixpkgs checkout. And then you could just address an arbitrary commit. And it would virtually hand over all the files.

A git virtual filesystem would be needed. Right now each NixOS already sort of synchronizes against the nixpkgs.

But as channels instead of commit based, and not actually using Git at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment