From 41e81a15a198b6e97e06901aaacb935bcfb59eea Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Mon, 27 May 2024 10:48:18 +1000
Subject: [PATCH] flake: move darwinSystem, nixosSystem inline from flake.lib

---
 flake.nix | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/flake.nix b/flake.nix
index 3c6d2fc..27e92ac 100644
--- a/flake.nix
+++ b/flake.nix
@@ -103,7 +103,8 @@
 
         flake.darwinConfigurations =
           let
-            inherit (self.lib) darwinSystem;
+            darwinSystem = args:
+              inputs.nix-darwin.lib.darwinSystem ({ specialArgs = { inherit inputs; }; } // args);
           in
           {
             darwin01 = darwinSystem {
@@ -122,7 +123,8 @@
 
         flake.nixosConfigurations =
           let
-            inherit (self.lib) nixosSystem;
+            nixosSystem = args:
+              inputs.nixpkgs.lib.nixosSystem ({ specialArgs = { inherit inputs; }; } // args);
           in
           {
             build01 = nixosSystem {
@@ -172,10 +174,5 @@
           remote-builder = ./modules/nixos/remote-builder.nix;
           watch-store = ./modules/nixos/watch-store.nix;
         };
-
-        flake.lib.darwinSystem = args:
-          inputs.nix-darwin.lib.darwinSystem ({ specialArgs = { inherit inputs; }; } // args);
-        flake.lib.nixosSystem = args:
-          inputs.nixpkgs.lib.nixosSystem ({ specialArgs = { inherit inputs; }; } // args);
       };
 }