From 8cb93f45422a02b7c99c51ae984d57e97f215f10 Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Mon, 5 Mar 2018 12:13:59 -0800 Subject: Add NixOS install instructions --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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..packages = [ pkgs.pass-otp ]; +``` + +- Imperative + +``` +nix-env -i pass-otp +``` + ### macOS ``` -- cgit v1.2.3