hyprland-wiki/pages/Nix/Cachix.md

37 lines
1.1 KiB
Markdown
Raw Normal View History

NOTE: This page only applies to the flake package. You can safely skip this if
you use the Nixpkgs package.
2023-06-13 13:14:21 +02:00
2023-02-14 14:37:52 +01:00
Hyprland is not built by Hydra and cached in `cache.nixos.org`, like the rest
2023-02-14 14:30:40 +01:00
of the Nixpkgs packages.
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 14:20:19 +01:00
The [Hyprland Cachix](https://app.cachix.org/cache/hyprland) exists to cache the
`hyprland` packages and any dependencies not found in `cache.nixos.org`.
{{< hint >}}
In order for Nix to take advantage of the cache, it has to be enabled **before**
enabling the Hyprland flake package.
2022-12-18 14:20:19 +01:00
{{< /hint >}}
```nix
# configuration.nix
{
nix.settings = {
substituters = ["https://hyprland.cachix.org"];
trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="];
};
}
```
{{< hint type=important >}}
Do **not** override Hyprland's `nixpkgs` input unless you know what you are
doing.
Doing so will make the cache useless, since you're building from a different
Nixpkgs commit.
{{< /hint >}}