diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 01:37:41 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 01:42:55 +0100 |
commit | 2b8256b060f1c2fd635e92749d167d9a57268212 (patch) | |
tree | 211ae22d25aaa9cecc6a7d261737f53335cc1e7b /machines/default.nix | |
parent | 174317d1489b72687df8559a9cc02ca068e2ba0c (diff) |
machines: Move own machines into machines/aszlig.
Introduces callMachine in machines/default.nix, which returns an attribute set containing the (input) configuration and also a build attribute containing the output configuration and thus also the builds. However, we still have references to ../../common-workstation.nix which we need to refactor very soon. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines/default.nix')
-rw-r--r-- | machines/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/machines/default.nix b/machines/default.nix new file mode 100644 index 00000000..10c4fdb6 --- /dev/null +++ b/machines/default.nix @@ -0,0 +1,20 @@ +{ system ? builtins.currentSystem, ... }: + +let + callMachine = path: rec { + config = import path; + build = import <nixpkgs/nixos/lib/eval-config.nix> { + inherit system; + modules = [ config ]; + }; + }; + +in { + aszlig = { + dnyarri = callMachine ./aszlig/dnyarri.nix; + mmrnmhrm = callMachine ./aszlig/mmrnmhrm.nix; + arilou = callMachine ./aszlig/arilou.nix; + kzerza = callMachine ./aszlig/kzerza.nix; + tishtushi = callMachine ./aszlig/tishtushi.nix; + }; +} |