mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
21 lines
475 B
Nix
21 lines
475 B
Nix
{ nixpkgs ? <nixpkgs>
|
|
, configuration ? <darwin-config>
|
|
, system ? builtins.currentSystem
|
|
, pkgs ? import nixpkgs { inherit system; }
|
|
, lib ? pkgs.lib
|
|
}:
|
|
|
|
let
|
|
eval = import ./eval-config.nix {
|
|
inherit lib;
|
|
modules = [
|
|
configuration
|
|
{ nixpkgs.source = lib.mkDefault nixpkgs; }
|
|
] ++ lib.optional (system != null) {
|
|
nixpkgs.system = lib.mkDefault system;
|
|
};
|
|
};
|
|
in
|
|
eval // {
|
|
uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { };
|
|
}
|