mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
feat: add binary cache to instructions (#353)
This commit is contained in:
@@ -1,18 +1,18 @@
|
|||||||
# Nix Flake Usage
|
# Nix Flake Usage
|
||||||
|
|
||||||
## run
|
## Run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nix run github:feschber/lan-mouse
|
nix run github:feschber/lan-mouse
|
||||||
|
|
||||||
# with params
|
# With params
|
||||||
nix run github:feschber/lan-mouse -- --help
|
nix run github:feschber/lan-mouse -- --help
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## home-manager module
|
## Home-manager module
|
||||||
|
|
||||||
add input
|
Add input:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
inputs = {
|
inputs = {
|
||||||
@@ -20,14 +20,27 @@ inputs = {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
enable lan-mouse
|
Optional: add [our binary cache](https://app.cachix.org/cache/lan-mouse) to allow a faster package install.
|
||||||
|
|
||||||
|
```nix
|
||||||
|
nixConfig = {
|
||||||
|
extra-substituters = [
|
||||||
|
"https://lan-mouse.cachix.org/"
|
||||||
|
];
|
||||||
|
extra-trusted-public-keys = [
|
||||||
|
"lan-mouse.cachix.org-1:KlE2AEZUgkzNKM7BIzMQo8w9yJYqUpor1CAUNRY6OyM="
|
||||||
|
];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
Enable lan-mouse:
|
||||||
|
|
||||||
``` nix
|
``` nix
|
||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
# add the home manager module
|
# Add the Home Manager module
|
||||||
imports = [inputs.lan-mouse.homeManagerModules.default];
|
imports = [inputs.lan-mouse.homeManagerModules.default];
|
||||||
|
|
||||||
programs.lan-mouse = {
|
programs.lan-mouse = {
|
||||||
|
|||||||
Reference in New Issue
Block a user