mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
31 lines
666 B
Nix
31 lines
666 B
Nix
{ pkgs ? import <nixpkgs> {}, config ? <darwin-config> }:
|
|
|
|
let
|
|
|
|
eval = pkgs.lib.evalModules {
|
|
check = true;
|
|
args = { inherit pkgs; };
|
|
modules =
|
|
[ config
|
|
./modules/system
|
|
./modules/system/activation-scripts.nix
|
|
./modules/system/defaults
|
|
./modules/system/etc.nix
|
|
./modules/system/launchd.nix
|
|
./modules/nix
|
|
./modules/environment
|
|
./modules/launchd
|
|
./modules/services/activate-system.nix
|
|
./modules/services/nix-daemon.nix
|
|
./modules/programs/tmux.nix
|
|
];
|
|
};
|
|
|
|
system = eval.config.system.build.toplevel;
|
|
|
|
in
|
|
|
|
{
|
|
inherit (eval) config;
|
|
inherit system;
|
|
}
|