summary refs log tree commit diff
path: root/nixos/modules/services/misc/dictd.nix
diff options
context:
space:
mode:
authorEdward Tjörnhammar <ed@cflags.cc>2016-10-19 08:34:41 +0200
committerEdward Tjörnhammar <ed@cflags.cc>2016-10-19 08:43:30 +0200
commit642366d103a458079a46d3a3943c71eddbcf0cbb (patch)
tree962a499c4e829f8023023b020a7f2d159eba2ae5 /nixos/modules/services/misc/dictd.nix
parentf59a1ee660060232891789cef8951cb9dfd9aeb9 (diff)
downloadnixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.tar
nixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.tar.gz
nixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.tar.bz2
nixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.tar.lz
nixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.tar.xz
nixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.tar.zst
nixpkgs-642366d103a458079a46d3a3943c71eddbcf0cbb.zip
nixos: dictd config location; bind to cfg
Diffstat (limited to 'nixos/modules/services/misc/dictd.nix')
-rw-r--r--nixos/modules/services/misc/dictd.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/services/misc/dictd.nix b/nixos/modules/services/misc/dictd.nix
index ef744439c3d..17c5e331547 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 ];