Author: eelco
Date: Thu Mar  1 14:46:47 2012
New Revision: 32718
URL: https://nixos.org/websvn/nix/?rev=32718&sc=1

Log:
* Generate a resolvconf.conf file for openresolv.

Modified:
   nixos/trunk/modules/config/networking.nix

Modified: nixos/trunk/modules/config/networking.nix
==============================================================================
--- nixos/trunk/modules/config/networking.nix   Thu Mar  1 14:45:27 2012        
(r32717)
+++ nixos/trunk/modules/config/networking.nix   Thu Mar  1 14:46:47 2012        
(r32718)
@@ -56,5 +56,20 @@
           '';
         target = "hosts";
       }
+
+      { # /etc/resolvconf.conf: Configuration for openresolv.
+        source = pkgs.writeText "resolvconf.conf"
+          ''
+            # This is the default, but we must set it here to prevent
+            # a collision with an apparently unrelated environment
+            # variable with the same name exported by dhcpcd.
+            interface_order='lo lo[0-9]*'
+
+            # Invalidate the nscd cache whenever resolv.conf is
+            # regenerated.
+            libc_restart='${pkgs.upstart}/sbin/start invalidate-nscd'
+          '';
+        target = "resolvconf.conf";
+      }
     ];
 }
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to