mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-06 23:27:19 +02:00
doc: usage of binary cache
This commit is contained in:
parent
8e85c63ee5
commit
983a305518
18
README.md
18
README.md
@ -489,6 +489,10 @@ First, make sure Flakes and the `nix` command are enabled.
|
|||||||
In your `~/.config/nix/nix.conf`:
|
In your `~/.config/nix/nix.conf`:
|
||||||
```
|
```
|
||||||
experimental-features = nix-command flakes
|
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
|
```bash
|
||||||
@ -527,6 +531,12 @@ nix profile install github:winapps-org/winapps#winapps-launcher # optional
|
|||||||
(
|
(
|
||||||
{ pkgs, ... }:
|
{ 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 = [
|
environment.systemPackages = [
|
||||||
winapps.packages.${system}.winapps
|
winapps.packages.${system}.winapps
|
||||||
winapps.packages.${system}.winapps-launcher # optional
|
winapps.packages.${system}.winapps-launcher # optional
|
||||||
@ -546,8 +556,14 @@ However, if you still don't want to use flakes, you can use WinApps with flake-c
|
|||||||
|
|
||||||
```nix
|
```nix
|
||||||
# configuration.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 =
|
environment.systemPackages =
|
||||||
let
|
let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user