flake: add lib.darwinSystem for inputs

This commit is contained in:
zowoq 2023-06-05 15:34:12 +10:00
parent 628b089424
commit 6bbadc06be

View file

@ -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);
};