forked from mirrors/nixpkgs
nixos: dictd config location; bind to cfg
This commit is contained in:
parent
f59a1ee660
commit
642366d103
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.services.dictd;
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
###### interface
|
###### interface
|
||||||
|
@ -34,8 +38,8 @@ with lib;
|
||||||
|
|
||||||
config = let dictdb = pkgs.dictDBCollector { dictlist = map (x: {
|
config = let dictdb = pkgs.dictDBCollector { dictlist = map (x: {
|
||||||
name = x.name;
|
name = x.name;
|
||||||
filename = x; } ) config.services.dictd.DBs; };
|
filename = x; } ) cfg.DBs; };
|
||||||
in mkIf config.services.dictd.enable {
|
in mkIf cfg.enable {
|
||||||
|
|
||||||
# get the command line client on system path to make some use of the service
|
# get the command line client on system path to make some use of the service
|
||||||
environment.systemPackages = [ pkgs.dict ];
|
environment.systemPackages = [ pkgs.dict ];
|
||||||
|
|
Loading…
Reference in a new issue