hyprland-wiki/content/Nix/Cachix.md

41 lines
1.2 KiB
Markdown
Raw Normal View History

---
title: Cachix
weight: 3
---
2025-10-29 20:52:11 +01:00
> [!NOTE]
> This page only applies to the flake package.
> You can safely skip this if you use the Nixpkgs package.
2023-06-13 14:14:21 +03:00
2023-08-26 19:31:56 +03:00
The Hyprland flake is not built by Hydra, so it is not cached in
[cache.nixos.org], like the rest of Nixpkgs.
2023-02-14 15:30:40 +02:00
Instead of requiring you to build Hyprland (and its dependencies, which may
include `mesa`, `ffmpeg`, etc), we provide a Cachix cache that you can add to
your Nix configuration.
2022-12-18 15:20:19 +02:00
The [Hyprland Cachix](https://app.cachix.org/cache/hyprland) exists to cache the
2023-08-26 19:31:56 +03:00
`hyprland` packages and any dependencies not found in [cache.nixos.org].
2022-12-18 15:20:19 +02:00
2025-10-29 20:52:11 +01:00
> [!WARNING]
> In order for Nix to take advantage of the cache, it has to be enabled **before**
> using the Hyprland flake package.
2022-12-18 15:20:19 +02:00
```nix {filename="configuration.nix"}
2022-12-18 15:20:19 +02:00
{
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-substituters = ["https://hyprland.cachix.org"];
2022-12-18 15:20:19 +02:00
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
}
```
2025-10-29 20:52:11 +01:00
> [!WARNING]
> Do **not** override Hyprland's `nixpkgs` input
> unless you know what you are doing.
> Doing so will render the cache useless, since you're building from a different
> Nixpkgs commit.
2023-08-26 19:31:56 +03:00
[cache.nixos.org]: https://cache.nixos.org