From 3922b45bd92f07f62e8af84bb9471abf8b0873a3 Mon Sep 17 00:00:00 2001 From: skifli <121291719+skifli@users.noreply.github.com> Date: Thu, 4 Dec 2025 11:09:10 +0000 Subject: [PATCH] feat: add binary cache to instructions (#353) --- nix/README.md | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/nix/README.md b/nix/README.md index 26b14a6..de0ab87 100644 --- a/nix/README.md +++ b/nix/README.md @@ -1,18 +1,18 @@ # Nix Flake Usage -## run +## Run ```bash nix run github:feschber/lan-mouse -# with params +# With params nix run github:feschber/lan-mouse -- --help ``` -## home-manager module +## Home-manager module -add input +Add input: ```nix 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 { inputs, ... }: { - # add the home manager module + # Add the Home Manager module imports = [inputs.lan-mouse.homeManagerModules.default]; programs.lan-mouse = {