Pidgin: Difference between revisions

imported>Castilma
Created page with "If you want to use pidgin with the otr plugin, you will find out, that installing the plugin with <code>nix-env -iA nixos.pidginotr</code> does not work. The plugin doesn't ap..."
 
Klinger (talk | contribs)
Beginning added and Category:Applications
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
If you want to use pidgin with the otr plugin, you will find out, that installing the plugin with
Pidgin is a multi-protocol messaging client.
<code>nix-env -iA nixos.pidginotr</code>
does not work. The plugin doesn't appear in the plugin list.


To use it, you need to make a [https://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides packageOverride].
[https://pidgin.im/ Pidgin] is available in NixOS, as are many popular plugins such as pidgin-otr.


Put this into <code>~/.config/nixpkgs/config.nix</code>.
==Installing plugins==
NixOS provides Pidgin plugins as packages such as <tt>pidginotr</tt>, but installing them via <tt>nix-env</tt> or <tt>environment.systemPackages</tt> will not work. The plugin packages must be configured as part of the <tt>pidgin-with-plugins</tt> package via a package override.


<code>
===User-scope installation===
{
To install Pidgin with desired plugins only for the current user:
 
# In <code>~/.config/nixpkgs/config.nix</code>, add: <syntaxhighlight lang=nix>{
  ...
   packageOverrides = pkgs: rec {
   packageOverrides = pkgs: rec {
  pidgin-with-plugins = pkgs.pidgin-with-plugins.override {
    pidgin-with-plugins = pkgs.pidgin.override {
        plugins = [ pkgs.pidginotr ];};
      ## Add whatever plugins are desired (see nixos.org package listing).
      plugins = [ pkgs.pidgin-otr ];
    };
   };
   };
}
  ...
</code>.
}</syntaxhighlight>
# Install pidgin with <code>nix-env -iA nixos.pidgin-with-plugins</code>


Then you can install pidgin with  
===System-scope installation===
<code>nix-env -iA nixos.pidgin-with-plugins</code>. This install will then include pidginotr.
To install Pidgin with desired plugins for all users on the system:


# Amend <tt>/etc/nixos/configuration.nix</tt> to add <tt>pidgin-with-plugins</tt> to <tt>systemPackages</tt>: <syntaxhighlight lang=nix>{
  ...
  environment.systemPackages = with pkgs; [
    pidgin-with-plugins
  ];
  ...
}</syntaxhighlight>
# Override <tt>pidgin-with-plugins</tt> to add the desired plugins: <syntaxhighlight lang=nix>{
  ...
  nixpkgs.config = {
    allowUnfree = true;
    packageOverrides = pkgs: with pkgs; {
      pidgin-with-plugins = pkgs.pidgin.override {
        ## Add whatever plugins are desired (see nixos.org package listing).
        plugins = [ pidgin-otr ];
      };
    };
  };
  ...
}</syntaxhighlight>
# Run <tt>nixos-rebuild switch</tt> as root to apply changes.


[[Category:Guide]]
[[Category:Applications]]