Skip to content

Commit

Permalink
doc: usage of binary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardotglobal authored Jan 1, 2025
1 parent 8e85c63 commit 983a305
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,10 @@ First, make sure Flakes and the `nix` command are enabled.
In your `~/.config/nix/nix.conf`:
```
experimental-features = nix-command flakes
# specify to use binary cache (optional)
extra-substituters = https://winapps.cachix.org/
extra-trusted-public-keys = winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=
extra-trusted-users = <your-username> # replace with your username
```

```bash
Expand Down Expand Up @@ -527,6 +531,12 @@ nix profile install github:winapps-org/winapps#winapps-launcher # optional
(
{ pkgs, ... }:
{
# set up binary cache (optional)
nix.settings = {
substituters = [ "https://winapps.cachix.org/" ];
trusted-public-keys = [ "winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=" ];
};
environment.systemPackages = [
winapps.packages.${system}.winapps
winapps.packages.${system}.winapps-launcher # optional
Expand All @@ -546,8 +556,14 @@ However, if you still don't want to use flakes, you can use WinApps with flake-c
```nix
# configuration.nix
{ ... }:
{ system, ... }:
{
# set up binary cache (optional)
nix.settings = {
substituters = [ "https://winapps.cachix.org/" ];
trusted-public-keys = [ "winapps.cachix.org-1:HI82jWrXZsQRar/PChgIx1unmuEsiQMQq+zt05CD36g=" ];
trusted-users = [ "<your username>" ]; # replace with your username
};
environment.systemPackages =
let
Expand Down

0 comments on commit 983a305

Please sign in to comment.