diff options
author | Tad Fisher <tadfisher@gmail.com> | 2018-11-15 12:12:14 -0800 |
---|---|---|
committer | Tad Fisher <tadfisher@gmail.com> | 2018-11-15 12:12:14 -0800 |
commit | 983a63bac20b43a0431ea13feddcc0ef4ae2d44d (patch) | |
tree | 06c866592f1d403fddab086ca6838b9fd841ec9b | |
parent | 903e2403271818a27e1b1b32e1f98aecd4bb9856 (diff) | |
download | pass-otp-983a63bac20b43a0431ea13feddcc0ef4ae2d44d.tar.gz pass-otp-983a63bac20b43a0431ea13feddcc0ef4ae2d44d.zip |
Update Nix instructions
-rw-r--r-- | README.md | 26 |
1 files changed, 6 insertions, 20 deletions
@@ -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 |