infrastructure/nixos-configurations/lindberg-build/applications
2024-12-06 17:39:33 +02:00
..
attic.nix Require postgres version to be configured manually 2024-12-06 17:39:33 +02:00
default.nix Require postgres version to be configured manually 2024-12-06 17:39:33 +02:00
nixpkgs-cache.nix Commit files for public release 2024-10-02 16:57:36 +03:00
README.md Commit files for public release 2024-10-02 16:57:36 +03:00

Nix Caches

Nixpkgs Cache

To put less load on the upstream nixpkgs CDN and speed up builds, we run a (public) nixpkgs cache on nixpkgs-cache.qo.is. To use it, configure nix like follows in your nix.conf:

substituters = https://nixpkgs-cache.qo.is?priority=39

Note that the cache.nixos.org public key must also be trusted:

trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=

See the nix documentation for details about substitutors.

Attic

We use attic as a self hosted nix build cache.

See upstream documentation for details on how to use it.

Server Administration

Add users:

# For example, to generate a token for Alice with read-write access to any cache starting with `dev-` and read-only access to `prod`, expiring in 2 years:

atticadm make-token --sub "alice" --validity "2y" --pull "dev-*" --push "dev-*" --pull "prod"

Client Usage

attic login qois https://attic.qo.is <TOKEN_HERE>

attic use qois:cachename