aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md26
1 files changed, 6 insertions, 20 deletions
diff --git a/README.md b/README.md
index efdc2ba..acd0b47 100644
--- a/README.md
+++ b/README.md
@@ -137,31 +137,17 @@ apt install pass-extension-otp
emerge app-admin/pass-otp
```
-### NixOS
+### Nix/NixOS
-- `configuration.nix`
-
-System-wide:
-
-```nix
-{
- environment.systemPackages = [ pkgs.pass-otp ];
-}
-```
-
-Per-user:
+The following expression builds `pass` with the `pass-otp` extension:
```nix
-{
- users.users."name".packages = [ pkgs.pass-otp ];
-}
+with pkgs;
+pass.withExtensions (exts: [ exts.pass-otp ])
```
-- Imperative
-
-```
-nix-env -i pass-otp
-```
+The above can be installed imperatively via `nix-env` or ran in a temprorary
+environment via `nix-shell`.
### macOS
#### Brew