Configure shell plugins using Nix
If you're using Nix to manage your shell configuration, you can configure 1Password Shell Plugins natively within your Nix configuration.
-
Add the 1Password Shell Plugins flake to your flake inputs:
-
Somewhere in your flake output configuration, import and use the appropriate module:
- NixOS without home-manager
- Nix with home-manager
-
Apply the updated configuration:
- NixOS (including home-manager as a NixOS module)
- Nix with standalone home-manager
~/path/to/flake/directory/ should be the path to the directory containing your
flake.nix
file, and my-computer should be the name of the flake output to use as the system configuration.~/path/to/flake/directory/ should be the path to the directory containing your
flake.nix
file, and my-computer should be the name of the flake output to use as the system configuration.