summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorDrew Hess <src@drewhess.com>2021-04-05 14:05:02 +0100
committerDrew Hess <src@drewhess.com>2021-09-08 13:05:18 +0100
commit9f7e95887f62086c3af7362ed2b664c7f181cadf (patch)
treee7d8bde1c6436ca2dce6ced119cbebf85b20b526 /flake.nix
parent007d700e644ac588ad6668e6439950a5b6e2ff64 (diff)
Pass system to darwinSystem rather than eval-config.
This allows us to specify what kind of darwinSystem we want to build, rather than determining it at evaluation time.
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 1c3e3c3..a65576f 100644
--- a/flake.nix
+++ b/flake.nix
@@ -7,7 +7,8 @@
# TODO handle multiple architectures.
evalConfig = import ./eval-config.nix { inherit (nixpkgs) lib; };
- darwinSystem = { modules, inputs ? {}, ... }@args: self.lib.evalConfig (args // {
+ darwinSystem = { modules, system, inputs ? { }, ... }@args: self.lib.evalConfig (args // {
+ inherit system;
inputs = { inherit nixpkgs; darwin = self; } // inputs;
modules = modules ++ [ self.darwinModules.flakeOverrides ];
});
@@ -20,6 +21,7 @@
darwinModules.simple = ./modules/examples/simple.nix;
checks.x86_64-darwin.simple = (self.lib.darwinSystem {
+ system = "x86_64-darwin";
modules = [ self.darwinModules.simple ];
}).system;