Author: NicolasPierron
Date: Fri Sep  3 19:10:59 2010
New Revision: 23631
URL: https://svn.nixos.org/websvn/nix/?rev=23631&sc=1

Log:
Replace mkOverride by its alias mkOverrideTemplate to remove the unused
template argument of mkOverride later.

Modified:
   nixos/trunk/modules/installer/cd-dvd/installation-cd-base.nix
   nixos/trunk/modules/installer/cd-dvd/system-tarball-pc.nix
   nixos/trunk/modules/services/x11/desktop-managers/kde4.nix
   nixos/trunk/modules/system/activation/no-clone.nix
   nixos/trunk/modules/testing/test-instrumentation.nix
   nixos/trunk/modules/virtualisation/qemu-vm.nix
   nixos/trunk/tests/check-filesystems.nix
   nixos/trunk/tests/installer.nix
   nixos/trunk/tests/nfs.nix
   nixos/trunk/tests/quake3.nix
   nixos/trunk/tests/test-nixos-install-from-cd/configuration-iso.nix
   nixos/trunk/tests/test-nixos-install-from-cd/module-insecure.nix
   nixos/trunk/tests/trac.nix

Modified: nixos/trunk/modules/installer/cd-dvd/installation-cd-base.nix
==============================================================================
--- nixos/trunk/modules/installer/cd-dvd/installation-cd-base.nix       Fri Sep 
 3 19:10:54 2010        (r23630)
+++ nixos/trunk/modules/installer/cd-dvd/installation-cd-base.nix       Fri Sep 
 3 19:10:59 2010        (r23631)
@@ -247,9 +247,9 @@
   # not be started by default on the installation CD because the
   # default root password is empty.
   services.openssh.enable = true;
-  jobs.sshd.startOn = pkgs.lib.mkOverride 50 {} "";
+  jobs.sshd.startOn = pkgs.lib.mkOverrideTemplate 50 {} "";
 
   # Enable wpa_supplicant, but don't start it by default.
   networking.enableWLAN = true;
-  jobs.wpa_supplicant.startOn = pkgs.lib.mkOverride 50 {} "";
+  jobs.wpa_supplicant.startOn = pkgs.lib.mkOverrideTemplate 50 {} "";
 }

Modified: nixos/trunk/modules/installer/cd-dvd/system-tarball-pc.nix
==============================================================================
--- nixos/trunk/modules/installer/cd-dvd/system-tarball-pc.nix  Fri Sep  3 
19:10:54 2010        (r23630)
+++ nixos/trunk/modules/installer/cd-dvd/system-tarball-pc.nix  Fri Sep  3 
19:10:59 2010        (r23631)
@@ -174,5 +174,5 @@
   # not be started by default on the installation CD because the
   # default root password is empty.
   services.openssh.enable = true;
-  jobs.sshd.startOn = pkgs.lib.mkOverride 50 {} "";
+  jobs.sshd.startOn = pkgs.lib.mkOverrideTemplate 50 {} "";
 }

Modified: nixos/trunk/modules/services/x11/desktop-managers/kde4.nix
==============================================================================
--- nixos/trunk/modules/services/x11/desktop-managers/kde4.nix  Fri Sep  3 
19:10:54 2010        (r23630)
+++ nixos/trunk/modules/services/x11/desktop-managers/kde4.nix  Fri Sep  3 
19:10:59 2010        (r23631)
@@ -35,7 +35,7 @@
     # overriden by the user's configuration).
     # !!! doesn't work yet ("Multiple definitions. Only one is allowed
     # for this option.")
-    # services.xserver.desktopManager.default = mkOverride 900 "kde4";
+    # services.xserver.desktopManager.default = mkOverrideTemplate 900 "kde4";
 
     services.xserver.desktopManager.session = singleton
       { name = "kde4";

Modified: nixos/trunk/modules/system/activation/no-clone.nix
==============================================================================
--- nixos/trunk/modules/system/activation/no-clone.nix  Fri Sep  3 19:10:54 
2010        (r23630)
+++ nixos/trunk/modules/system/activation/no-clone.nix  Fri Sep  3 19:10:59 
2010        (r23631)
@@ -5,9 +5,9 @@
 with pkgs.lib;
 
 {
-  boot.loader.grub.device = mkOverride 0 {} "";
+  boot.loader.grub.device = mkOverrideTemplate 0 {} "";
   # undefined the obsolete name of the previous option.
-  boot.grubDevice = mkOverride 0 {} pkgs.lib.mkNotdef;
-  nesting.children = mkOverride 0 {} [];
-  nesting.clone = mkOverride 0 {} [];
+  boot.grubDevice = mkOverrideTemplate 0 {} pkgs.lib.mkNotdef;
+  nesting.children = mkOverrideTemplate 0 {} [];
+  nesting.clone = mkOverrideTemplate 0 {} [];
 }

Modified: nixos/trunk/modules/testing/test-instrumentation.nix
==============================================================================
--- nixos/trunk/modules/testing/test-instrumentation.nix        Fri Sep  3 
19:10:54 2010        (r23630)
+++ nixos/trunk/modules/testing/test-instrumentation.nix        Fri Sep  3 
19:10:59 2010        (r23631)
@@ -78,8 +78,8 @@
     services.syslogd.extraConfig = "*.* /dev/ttyS0";
 
     # Prevent tests from accessing the Internet.
-    networking.defaultGateway = mkOverride 150 {} "";
-    networking.nameservers = mkOverride 150 {} [ ];
+    networking.defaultGateway = mkOverrideTemplate 150 {} "";
+    networking.nameservers = mkOverrideTemplate 150 {} [ ];
 
     # Require a patch to the kernel to increase the 15s CIFS timeout.
     assertions =

Modified: nixos/trunk/modules/virtualisation/qemu-vm.nix
==============================================================================
--- nixos/trunk/modules/virtualisation/qemu-vm.nix      Fri Sep  3 19:10:54 
2010        (r23630)
+++ nixos/trunk/modules/virtualisation/qemu-vm.nix      Fri Sep  3 19:10:59 
2010        (r23631)
@@ -232,12 +232,12 @@
   virtualisation.pathsInNixDB = [ config.system.build.toplevel ];
   
   # Mount the host filesystem via CIFS, and bind-mount the Nix store
-  # of the host into our own filesystem.  We use mkOverride to allow
+  # of the host into our own filesystem.  We use mkOverrideTemplate to allow
   # this module to be applied to "normal" NixOS system configuration,
   # where the regular value for the `fileSystems' attribute should be
   # disregarded for the purpose of building a VM test image (since
   # those filesystems don't exist in the VM).
-  fileSystems = mkOverride 50 {}
+  fileSystems = mkOverrideTemplate 50 {}
     [ { mountPoint = "/";
         device = "/dev/vda";
       }
@@ -259,7 +259,7 @@
   # host filesystem and thus deadlocks the system.
   networking.useDHCP = false;
 
-  networking.defaultGateway = mkOverride 200 {} "10.0.2.2";
+  networking.defaultGateway = mkOverrideTemplate 200 {} "10.0.2.2";
 
   networking.nameservers = [ "10.0.2.3" ];
 
@@ -287,9 +287,9 @@
 
   # When building a regular system configuration, override whatever
   # video driver the host uses.
-  services.xserver.videoDriver = mkOverride 50 {} null;
-  services.xserver.videoDrivers = mkOverride 50 {} [ "cirrus" "vesa" ];
-  services.xserver.defaultDepth = mkOverride 50 {} 0;
+  services.xserver.videoDriver = mkOverrideTemplate 50 {} null;
+  services.xserver.videoDrivers = mkOverrideTemplate 50 {} [ "cirrus" "vesa" ];
+  services.xserver.defaultDepth = mkOverrideTemplate 50 {} 0;
   services.xserver.monitorSection =
     ''
       # Set a higher refresh rate so that resolutions > 800x600 work.
@@ -300,5 +300,5 @@
   services.mingetty.ttys = ttys ++ optional (!cfg.graphics) "ttyS0";
 
   # Wireless won't work in the VM.
-  networking.enableWLAN = mkOverride 50 {} false;
+  networking.enableWLAN = mkOverrideTemplate 50 {} false;
 }

Modified: nixos/trunk/tests/check-filesystems.nix
==============================================================================
--- nixos/trunk/tests/check-filesystems.nix     Fri Sep  3 19:10:54 2010        
(r23630)
+++ nixos/trunk/tests/check-filesystems.nix     Fri Sep  3 19:10:59 2010        
(r23631)
@@ -45,7 +45,7 @@
             autocreate = true;
             device = "share:/repos2";
           };
-        in pkgs.lib.mkOverride 50 {} [ 
+        in pkgs.lib.mkOverrideTemplate 50 {} [ 
           repos1
           repos1 # check remount 
           repos2 # check after remount

Modified: nixos/trunk/tests/installer.nix
==============================================================================
--- nixos/trunk/tests/installer.nix     Fri Sep  3 19:10:54 2010        (r23630)
+++ nixos/trunk/tests/installer.nix     Fri Sep  3 19:10:59 2010        (r23631)
@@ -14,7 +14,7 @@
         [ ../modules/installer/cd-dvd/installation-cd-graphical.nix
           ../modules/testing/test-instrumentation.nix
           { key = "serial"; 
-            boot.loader.grub.timeout = mkOverride 0 {} 0;
+            boot.loader.grub.timeout = mkOverrideTemplate 0 {} 0;
             
             # The test cannot access the network, so any sources we
             # need must be included in the ISO.

Modified: nixos/trunk/tests/nfs.nix
==============================================================================
--- nixos/trunk/tests/nfs.nix   Fri Sep  3 19:10:54 2010        (r23630)
+++ nixos/trunk/tests/nfs.nix   Fri Sep  3 19:10:59 2010        (r23631)
@@ -4,7 +4,7 @@
 
   client = 
     { config, pkgs, ... }:
-    { fileSystems = pkgs.lib.mkOverride 50 {} 
+    { fileSystems = pkgs.lib.mkOverrideTemplate 50 {} 
         [ { mountPoint = "/data";
             device = "server:/data";
             fsType = "nfs";

Modified: nixos/trunk/tests/quake3.nix
==============================================================================
--- nixos/trunk/tests/quake3.nix        Fri Sep  3 19:10:54 2010        (r23630)
+++ nixos/trunk/tests/quake3.nix        Fri Sep  3 19:10:59 2010        (r23631)
@@ -7,7 +7,7 @@
 
     { require = [ ./common/x11.nix ];
       services.xserver.driSupport = true;
-      services.xserver.defaultDepth = pkgs.lib.mkOverride 0 {} 16;
+      services.xserver.defaultDepth = pkgs.lib.mkOverrideTemplate 0 {} 16;
       environment.systemPackages = [ pkgs.icewm pkgs.quake3demo ];
     };
 

Modified: nixos/trunk/tests/test-nixos-install-from-cd/configuration-iso.nix
==============================================================================
--- nixos/trunk/tests/test-nixos-install-from-cd/configuration-iso.nix  Fri Sep 
 3 19:10:54 2010        (r23630)
+++ nixos/trunk/tests/test-nixos-install-from-cd/configuration-iso.nix  Fri Sep 
 3 19:10:59 2010        (r23631)
@@ -5,7 +5,7 @@
 {pkgs, config, ...}:
 
 let
-  doOverride = pkgs.lib.mkOverride 0 {};
+  doOverride = pkgs.lib.mkOverrideTemplate 0 {};
 in
 
 {

Modified: nixos/trunk/tests/test-nixos-install-from-cd/module-insecure.nix
==============================================================================
--- nixos/trunk/tests/test-nixos-install-from-cd/module-insecure.nix    Fri Sep 
 3 19:10:54 2010        (r23630)
+++ nixos/trunk/tests/test-nixos-install-from-cd/module-insecure.nix    Fri Sep 
 3 19:10:59 2010        (r23631)
@@ -6,7 +6,7 @@
 {pkgs, config, ...}:
 
 let
-  doOverride = pkgs.lib.mkOverride 0 {};
+  doOverride = pkgs.lib.mkOverrideTemplate 0 {};
 in
 
 {

Modified: nixos/trunk/tests/trac.nix
==============================================================================
--- nixos/trunk/tests/trac.nix  Fri Sep  3 19:10:54 2010        (r23630)
+++ nixos/trunk/tests/trac.nix  Fri Sep  3 19:10:59 2010        (r23631)
@@ -31,7 +31,7 @@
     webserver = 
       {config, pkgs, ...}:
       {
-        fileSystems = pkgs.lib.mkOverride 50 {} 
+        fileSystems = pkgs.lib.mkOverrideTemplate 50 {} 
           [ { mountPoint = "/repos";
               device = "storage:/repos"; } 
           ];
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to