Dict: Difference between revisions

imported>Crocodillian
m Add note to rebuild system after adding package to config.
imported>Peterhoeg
Set server via /etc/dict.conf instead of per user.
Line 6: Line 6:


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
environment.systemPackages = with pkgs; [
{
   dict
  environment = {
];
    etc."dict.conf".text = "server dict.org";
    systemPackages = with pkgs; [ dict ];
   };
}
</nowiki>}}
</nowiki>}}


and rebuild your system.
and rebuild your system.
Run the following as your user:
<syntaxhighlight lang="bash">
echo 'server dict.org' > ~/.dictrc
</syntaxhighlight>


== Usage ==
== Usage ==