aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTad Fisher <tadfisher@gmail.com>2018-03-05 12:13:59 -0800
committerGitHub <noreply@github.com>2018-03-05 12:13:59 -0800
commit8cb93f45422a02b7c99c51ae984d57e97f215f10 (patch)
tree9b1ec12db232f80c13d2a03db6132ccc84077f3e /README.md
parent4119587bf7988ebe901e3ceaea297ec894e64b0e (diff)
Add NixOS install instructions
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6c3ee78..39342f1 100644
--- a/README.md
+++ b/README.md
@@ -120,6 +120,28 @@ sudo make install
pacman -S pass-otp
```
+### NixOS
+
+- `configuration.nix`
+
+System-wide:
+
+```nix
+environment.systemPackages = [ pkgs.pass-otp ];
+```
+
+Per-user:
+
+```nix
+users.users.<name>.packages = [ pkgs.pass-otp ];
+```
+
+- Imperative
+
+```
+nix-env -i pass-otp
+```
+
### macOS
```