Skip to content

Commit 3922b45

Browse files
authored
feat: add binary cache to instructions (#353)
1 parent 640fa99 commit 3922b45

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

nix/README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,46 @@
11
# Nix Flake Usage
22

3-
## run
3+
## Run
44

55
```bash
66
nix run github:feschber/lan-mouse
77

8-
# with params
8+
# With params
99
nix run github:feschber/lan-mouse -- --help
1010

1111
```
1212

13-
## home-manager module
13+
## Home-manager module
1414

15-
add input
15+
Add input:
1616

1717
```nix
1818
inputs = {
1919
lan-mouse.url = "github:feschber/lan-mouse";
2020
}
2121
```
2222

23-
enable lan-mouse
23+
Optional: add [our binary cache](https://app.cachix.org/cache/lan-mouse) to allow a faster package install.
24+
25+
```nix
26+
nixConfig = {
27+
extra-substituters = [
28+
"https://lan-mouse.cachix.org/"
29+
];
30+
extra-trusted-public-keys = [
31+
"lan-mouse.cachix.org-1:KlE2AEZUgkzNKM7BIzMQo8w9yJYqUpor1CAUNRY6OyM="
32+
];
33+
};
34+
```
35+
36+
Enable lan-mouse:
2437

2538
``` nix
2639
{
2740
inputs,
2841
...
2942
}: {
30-
# add the home manager module
43+
# Add the Home Manager module
3144
imports = [inputs.lan-mouse.homeManagerModules.default];
3245
3346
programs.lan-mouse = {

0 commit comments

Comments
 (0)