Pidgin: Difference between revisions

From NixOS Wiki
imported>Makefu
m Makefu moved page Pidgin with OTR to Pidgin: make generic page
imported>Makefu
No edit summary
Line 1: Line 1:
== Configure OTR for pidgin ==
If you want to use pidgin with the OTR plugin, you will find out, that installing the plugin 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>
<code>nix-env -iA nixos.pidginotr</code>
Line 5: Line 6:
There are two ways to do it.
There are two ways to do it.


== User local change ==
=== User local change ===
To make a change that only affects the current user, do this:
To make a change that only affects the current user, do this:


Line 20: Line 21:
2. Install pidgin with <code>nix-env -iA nixos.pidgin-with-plugins</code>.
2. Install pidgin with <code>nix-env -iA nixos.pidgin-with-plugins</code>.


== System wide change ==
=== System wide change ===
This solution fixes it for all users.
This solution fixes it for all users.



Revision as of 20:02, 23 October 2017

Configure OTR for pidgin

If you want to use pidgin with the OTR plugin, you will find out, that installing the plugin with nix-env -iA nixos.pidginotr does not work. The plugin doesn't appear in the plugin list. To use it, you need to make a packageOverride. There are two ways to do it.

User local change

To make a change that only affects the current user, do this:

1. Put this into ~/.config/nixpkgs/config.nix:

{
  packageOverrides = pkgs: rec {
   pidgin-with-plugins  = pkgs.pidgin-with-plugins.override {
        plugins = [ pkgs.pidginotr ];};
  };
}

2. Install pidgin with nix-env -iA nixos.pidgin-with-plugins.

System wide change

This solution fixes it for all users.

1. extend systemPackages with the pidgin-with-plugins software:

environment.systemPackages = with pkgs; [
  pidgin-with-plugins
];

2. afterwards you need to override the plugins directive with pidginotr like this:

nixpkgs.config = {
  allowUnfree = true;
  packageOverrides = pkgs: with pkgs; {
    pidgin-with-plugins = pkgs.pidgin-with-plugins.override {
      plugins = [ pidginotr ];
    };
  };
};

Note: In order to affect your system by your nix-language-specific changes you have to evaluate it, run (as root): nixos-rebuild switch