shell-plugins
shell-plugins copied to clipboard
Optional package
Overview
1Password CLI requires setting the group of the executable to onepassword-cli
. This isn't possible when home-manager is installed in standalone mode (e.g. Ubuntu or other distributions). Opting out of installing the 1Password CLI
with nix allows using the system-wide installation (e.g. via apt).
This change also allows changing the package. It's beneficial when nixpkgs-unstable is mapped to pkgs.unstable
via an overlay.
This is not breaking, the current behavior remains as is.
Type of change
Improved experience for nix users.
How To Test
Opting out of installing the package:
{
imports = [ inputs._1password-shell-plugins.hmModules.default ];
programs._1password-shell-plugins = {
enable = true;
package = null;
plugins = with pkgs; [ gh awscli2 cachix ];
};
}
Changing the package:
{
imports = [ inputs._1password-shell-plugins.hmModules.default ];
programs._1password-shell-plugins = {
enable = true;
package = pkgs.unstable._1password;
plugins = with pkgs; [ gh awscli2 cachix ];
};
}
Changelog
Allow nix users to change the _1password
package like in home-manager modules or allow opting out from installing the package by setting it to null
.