Pidgin: Difference between revisions
imported>Castilma m use syntaxhighlight |
imported>Castilma Include the solution from the old wiki. |
||
Line 2: | Line 2: | ||
<code>nix-env -iA nixos.pidginotr</code> | <code>nix-env -iA nixos.pidginotr</code> | ||
does not work. The plugin doesn't appear in the plugin list. | 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]. | To use it, you need to make a [https://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides 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 <code>~/.config/nixpkgs/config.nix</code>: | |||
<syntaxhighlight lang=nix> | <syntaxhighlight lang=nix> | ||
{ | { | ||
Line 16: | Line 18: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
2. Install pidgin with <code>nix-env -iA nixos.pidgin-with-plugins</code>. | |||
<code>nix-env -iA nixos.pidgin-with-plugins</code>. This | |||
== System wide change == | |||
This solution fixes it for all users. | |||
1. extend systemPackages with the pidgin-with-plugins software: | |||
<syntaxhighlight lang=nix> | |||
environment.systemPackages = with pkgs; [ | |||
pidgin-with-plugins | |||
]; | |||
</syntaxhighlight> | |||
2. afterwards you need to override the plugins directive with pidginotr like this: | |||
<syntaxhighlight lang=nix> | |||
nixpkgs.config = { | |||
allowUnfree = true; | |||
packageOverrides = pkgs: with pkgs; { | |||
pidgin-with-plugins = pkgs.pidgin-with-plugins.override { | |||
plugins = [ pidginotr ]; | |||
}; | |||
}; | |||
}; | |||
</syntaxhighlight> | |||
<b>Note:</b> In order to affect your system by your nix-language-specific changes you have to evaluate it, run (as root): | |||
<code>nixos-rebuild switch</code> | |||
[[Category:Guide]] | [[Category:Guide]] |