diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-05-03 02:08:17 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-05-03 02:49:49 +0200 |
commit | a3b9a4f08ec836336fbd0070c6523dd5c6f4827b (patch) | |
tree | b8122e0c5b4868d0df6ffb136603fdce4caee481 /machines/default.nix | |
parent | 603803164610371275b0054262e6de584b78eabe (diff) |
Move callMachines into lib/
We now no longer need to import the call-machine.nix directly but now can use import <vuizvui/lib> in order to get *both* the callMachine and the callMachines function. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines/default.nix')
-rw-r--r-- | machines/default.nix | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/machines/default.nix b/machines/default.nix index 13cf8f6e..b616bd9a 100644 --- a/machines/default.nix +++ b/machines/default.nix @@ -1,20 +1,6 @@ -{ system ? builtins.currentSystem, ... }: +with import ../lib; -let - callMachine = import ../lib/call-machine.nix; - callMachines = path: args: let - machines = import path; - in with builtins; listToAttrs (map (name: { - inherit name; - value = callMachine machines.${name} ({ - extraConfig = { lib, ... }: { - imports = lib.singleton (args.extraConfig or {}); - networking.hostName = lib.mkOverride 900 name; - }; - } // removeAttrs args [ "extraConfig" ]); - }) (attrNames machines)); - nixpkgs = import (import ../nixpkgs-path.nix) {}; -in { +{ aszlig = { dnyarri = callMachine ./aszlig/dnyarri.nix {}; mmrnmhrm = callMachine ./aszlig/mmrnmhrm.nix {}; |