3
0
Fork 0
forked from mirrors/nixpkgs

nixos: dictd config location; bind to cfg

This commit is contained in:
Edward Tjörnhammar 2016-10-19 08:34:41 +02:00
parent f59a1ee660
commit 642366d103
No known key found for this signature in database
GPG key ID: 7B82CE4A866B6845

View file

@ -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 ];