From 642366d103a458079a46d3a3943c71eddbcf0cbb Mon Sep 17 00:00:00 2001 From: Edward Tjörnhammar Date: Wed, 19 Oct 2016 08:34:41 +0200 Subject: nixos: dictd config location; bind to cfg --- nixos/modules/services/misc/dictd.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'nixos/modules/services') diff --git a/nixos/modules/services/misc/dictd.nix b/nixos/modules/services/misc/dictd.nix index ef744439c3d6..17c5e3315477 100644 --- a/nixos/modules/services/misc/dictd.nix +++ b/nixos/modules/services/misc/dictd.nix @@ -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 ]; -- cgit 1.4.1 From eacb020a0c02a86f0fa89d33549a91bedca8ccfa Mon Sep 17 00:00:00 2001 From: Edward Tjörnhammar Date: Wed, 19 Oct 2016 08:35:37 +0200 Subject: nixos: dictd, make wiktionary and wordnet default dicts --- nixos/modules/services/misc/dictd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/services') diff --git a/nixos/modules/services/misc/dictd.nix b/nixos/modules/services/misc/dictd.nix index 17c5e3315477..24dca15dd913 100644 --- a/nixos/modules/services/misc/dictd.nix +++ b/nixos/modules/services/misc/dictd.nix @@ -24,7 +24,7 @@ in DBs = mkOption { type = types.listOf types.package; - default = []; + default = with pkgs.dictdDBs; [ wiktionary wordnet ]; example = [ pkgs.dictdDBs.nld2eng ]; description = ''List of databases to make available.''; }; -- cgit 1.4.1