mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
Merge 1d9f793e7f
into eaff8219d6
This commit is contained in:
commit
f630ef2b1f
1 changed files with 15 additions and 0 deletions
15
overlay.nix
Normal file
15
overlay.nix
Normal file
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue