From 1d9f793e7f5e4eb8240a99040efc47b6158f54a3 Mon Sep 17 00:00:00 2001 From: WeetHet Date: Sun, 30 Mar 2025 16:31:13 +0300 Subject: [PATCH] Add an overlay exposing darwinSystem modeled after pkgs.nixos --- overlay.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 overlay.nix diff --git a/overlay.nix b/overlay.nix new file mode 100644 index 00000000..e1d6cbf1 --- /dev/null +++ b/overlay.nix @@ -0,0 +1,15 @@ +final: _: { + nix-darwin = configuration: + let + result = import ./eval-config.nix { + inherit (final) lib; + modules = [ + ({ lib, ... }: { + config.nixpkgs.pkgs = lib.mkDefault final; + config.nixpkgs.source = lib.mkDefault final.path; + config.nixpkgs.system = lib.mkDefault final.stdenv.hostPlatform; + }) + ] ++ (if builtins.isList configuration then configuration else [ configuration ]); + }; + in result.config.system.build // result; +}