From 6bbadc06be72cdc88b26f0d87bcc9b600c5a6d14 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Mon, 5 Jun 2023 15:34:12 +1000 Subject: [PATCH] flake: add lib.darwinSystem for inputs --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 64c354a..30a05c2 100644 --- a/flake.nix +++ b/flake.nix @@ -93,7 +93,7 @@ flake.darwinConfigurations = let - inherit (inputs.darwin.lib) darwinSystem; + inherit (self.lib) darwinSystem; in { darwin02 = darwinSystem { @@ -141,6 +141,8 @@ zfs = ./modules/nixos/zfs.nix; }; + flake.lib.darwinSystem = args: + inputs.darwin.lib.darwinSystem ({ specialArgs = { inherit inputs; }; } // args); flake.lib.nixosSystem = args: inputs.nixpkgs.lib.nixosSystem ({ specialArgs = { inherit inputs; }; } // args); };