Skip to content

binary cache of nix store artifacts #2304

@mazunki

Description

@mazunki

I have set up a nix cache at https://nix-cache.mazunki.tech. I've built both ec759bd and 02a3996 on it.

Usage is fairly trivial if one is on a NixOS machine:

# /etc/nixos/configuration.nix
  nix.settings = {
    substituters = [ "https://nix-cache.mazunki.tech" ];
    trusted-public-keys = [ "nix-cache.mazunki.tech:g+E2FKZXvJ92hQGUKRTRuul32JtHUmT/QGYR6W4Z1gE=" ];
  };

I'm not sure one can add binary caches into nix2 declarations. I know flakes supports it, but for now it seems like adding it to configuration.nix (or alternatively /etc/nix/nix.conf) is probably the best. Should we merge a list of binary caches into the repo itself, or should we keep this information standalone?

More info here: https://wiki.nixos.org/wiki/Binary_Cache

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

nix-cache.mazunki.tech:g+E2FKZXvJ92hQGUKRTRuul32JtHUmT/QGYR6W4Z1gE=
-----BEGIN PGP SIGNATURE-----

iNUEARYKAH0WIQSHbXZq7IFtZ1haXRBLppXWD8YUvwUCaNOhdF8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0ODc2
RDc2NkFFQzgxNkQ2NzU4NUE1RDEwNEJBNjk1RDYwRkM2MTRCRgAKCRBLppXWD8YU
v92zAQDwlcF/03QFj6WzMmxgA1xSipSjEZRyVDaxUF8r0z1IcwD/bLceNT3ii3In
31jaNTytAHp7EDJT8kARUz475aULVQE=
=Q4Nv
-----END PGP SIGNATURE-----

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions