From 06331c2d932b0f6a2769b8cf39b62e6785cafd92 Mon Sep 17 00:00:00 2001 From: Elmo Todurov Date: Sat, 16 Sep 2023 22:45:03 +0300 Subject: [PATCH] Add helpful example for configuration.nix to README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bdd724b..5c4415f 100644 --- a/README.md +++ b/README.md @@ -184,7 +184,12 @@ pass.withExtensions (exts: [ exts.pass-otp ]) ``` The above can be installed imperatively via `nix-env` or ran in a temprorary -environment via `nix-shell`. +environment via `nix-shell`, or added to configuration.nix like this: +```nix +environment.systemPackages = with pkgs; [ + (pass.withExtensions (exts: [ exts.pass-otp ])) +]; +``` ### macOS #### Brew