about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-05-03 02:15:10 +0200
committeraszlig <aszlig@redmoonstudios.org>2016-05-03 02:49:49 +0200
commit76da82197f6cb49c7cbc4fa0d534489a358b9f74 (patch)
treeb53123da5740d00cbe33ce586b354bed999ccffb
parent15d1159650a00fe36bb714f26ec3a915d12c9bf1 (diff)
lib: Rename callMachines to callNetwork
This is to name it closer to what NixOps calls a network expression, so
that it's clear that there is more abstraction going on like setting the
hostname rather than just being a plain mapAttrs over callMachine.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--lib/default.nix2
-rw-r--r--machines/default.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/default.nix b/lib/default.nix
index dec45706..2c211f6f 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -1,7 +1,7 @@
 rec {
   callMachine = import ./call-machine.nix;
 
-  callMachines = path: args: let
+  callNetwork = path: args: let
     machines = import path;
   in with builtins; listToAttrs (map (name: {
     inherit name;
diff --git a/machines/default.nix b/machines/default.nix
index b616bd9a..2f09ffb3 100644
--- a/machines/default.nix
+++ b/machines/default.nix
@@ -13,7 +13,7 @@ with import ../lib;
     };
   };
   labnet = {
-    labtops = callMachines ./labnet/labtop.nix {
+    labtops = callNetwork ./labnet/labtop.nix {
       extraConfig.vuizvui.user.openlab.labtops.enable = true;
     };
   };