aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2018-11-15 12:12:14 -0800
committerTad Fisher <tadfisher@gmail.com>2018-11-15 12:12:14 -0800
commit983a63bac20b43a0431ea13feddcc0ef4ae2d44d (patch)
tree06c866592f1d403fddab086ca6838b9fd841ec9b
parent903e2403271818a27e1b1b32e1f98aecd4bb9856 (diff)
Update Nix instructions
-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