diff options
-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 |