Skip to content

Commit

Permalink
Update README for cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
iynaix committed Jan 31, 2025
1 parent 1bf6532 commit f6e9647
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,24 @@ focal is a rofi menu for capturing and copying screenshots or videos on hyprland
### NixOS
```nix
{
inputs.focal = {
url = "github:iynaix/focal";
inputs.nixpkgs.follows = "nixpkgs"; # override this repo's nixpkgs snapshot
inputs.focal.url = "github:iynaix/focal";
}
```

A [focal cachix](https://focal.cachix.org) is also available, providing prebuilt binaries. To use it, add the following to your configuration:
```nix
{
nix.settings = {
substituters = ["https://focal.cachix.org"];
trusted-public-keys = ["focal.cachix.org-1:/YkOWkXNH2uK7TnskrVMvda8LyCe4iIbMM1sZN2AOXY="];
};
}
```

> [!Warning]
> Overriding the `wfetch` input using a `inputs.nixpkgs.follows` invalidates the cache and will cause the package to be rebuilt.

Then, include it in your `environment.systemPackages` or `home.packages` by referencing the input:
```nix
# for hyprland
Expand Down

0 comments on commit f6e9647

Please sign in to comment.