about summary refs log tree commit diff
path: root/nixos/modules/services/system
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-24 17:08:55 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-24 17:10:19 +0200
commitd73025a5fe56e765bcb82c0f3740958debeaf3ce (patch)
tree137ddf2c3da8f8b04b602b119fc295b0bf23aa24 /nixos/modules/services/system
parent9237e86d9979e6e6d510bade6ab87f5707c54ffc (diff)
Enable systemd's mymachines NSS module
It makes every local container registered with machined resolvable.
Diffstat (limited to 'nixos/modules/services/system')
-rw-r--r--nixos/modules/services/system/nscd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/system/nscd.nix b/nixos/modules/services/system/nscd.nix
index 5460e962ea2cc..0879d9b85bd89 100644
--- a/nixos/modules/services/system/nscd.nix
+++ b/nixos/modules/services/system/nscd.nix
@@ -62,7 +62,7 @@ in
             mkdir -m 0755 -p /var/db/nscd
           '';
 
-        restartTriggers = [ config.environment.etc.hosts.source ];
+        restartTriggers = [ config.environment.etc.hosts.source config.environment.etc."nsswitch.conf".source ];
 
         serviceConfig =
           { ExecStart = "@${pkgs.glibc}/sbin/nscd nscd -f ${cfgFile}";