Difference between revisions of "Dict"
From NixOS Wiki
Crocodillian (talk | contribs) m (Add note to rebuild system after adding package to config.) |
m (rollback unauthorized mass edits) Tag: Rollback |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
− | environment.systemPackages = with pkgs; [ | + | { |
− | + | environment = { | |
− | + | etc."dict.conf".text = "server dict.org"; | |
+ | systemPackages = with pkgs; [ dict ]; | ||
+ | }; | ||
+ | } | ||
</nowiki>}} | </nowiki>}} | ||
and rebuild your system. | and rebuild your system. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Usage == | == Usage == |
Latest revision as of 11:04, 6 April 2024
The dict
utility does network dictionary lookups from the command-line, it is part of the dictd
software distribution.
Setup
Add `dict` to your list of packages in /etc/nixos/configuration.nix
:
/etc/nixos/configuration.nix
{
environment = {
etc."dict.conf".text = "server dict.org";
systemPackages = with pkgs; [ dict ];
};
}
and rebuild your system.
Usage
To lookup a word, run, for example:
dict snowflake