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;
let
cfg = config.services.dictd;
in
{
###### interface
@ -34,8 +38,8 @@ with lib;
config = let dictdb = pkgs.dictDBCollector { dictlist = map (x: {
name = x.name;
filename = x; } ) config.services.dictd.DBs; };
in mkIf config.services.dictd.enable {
filename = x; } ) cfg.DBs; };
in mkIf cfg.enable {
# get the command line client on system path to make some use of the service
environment.systemPackages = [ pkgs.dict ];