2016-12-10 11:57:09 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {}, config ? <darwin-config> }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
eval = pkgs.lib.evalModules {
|
|
|
|
check = true;
|
|
|
|
modules =
|
|
|
|
[ config
|
|
|
|
./modules/system
|
|
|
|
./modules/system/activation-scripts.nix
|
2016-12-14 12:05:23 +00:00
|
|
|
./modules/system/defaults-write.nix
|
|
|
|
./modules/system/defaults/NSGlobalDomain.nix
|
|
|
|
./modules/system/defaults/LaunchServices.nix
|
|
|
|
./modules/system/defaults/dock.nix
|
|
|
|
./modules/system/defaults/finder.nix
|
|
|
|
./modules/system/defaults/trackpad.nix
|
2016-12-10 11:57:09 +00:00
|
|
|
./modules/system/etc.nix
|
|
|
|
./modules/system/launchd.nix
|
2016-12-16 11:20:28 +00:00
|
|
|
./modules/time
|
2016-12-15 12:26:22 +00:00
|
|
|
./modules/nix
|
2016-12-12 16:34:43 +00:00
|
|
|
./modules/nix/nix-darwin.nix
|
2016-12-11 15:24:37 +00:00
|
|
|
./modules/nix/nixpkgs.nix
|
2016-12-10 11:57:09 +00:00
|
|
|
./modules/environment
|
|
|
|
./modules/launchd
|
|
|
|
./modules/services/activate-system.nix
|
|
|
|
./modules/services/nix-daemon.nix
|
2016-12-12 22:51:08 +00:00
|
|
|
./modules/programs/bash.nix
|
2016-12-10 11:57:09 +00:00
|
|
|
./modules/programs/tmux.nix
|
2016-12-18 12:52:03 +00:00
|
|
|
./modules/programs/vim.nix
|
2016-12-12 21:00:48 +00:00
|
|
|
./modules/programs/zsh.nix
|
2016-12-10 11:57:09 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2016-12-11 11:49:11 +00:00
|
|
|
system = eval.config.system.build.toplevel;
|
|
|
|
|
2016-12-10 11:57:09 +00:00
|
|
|
in
|
2016-12-11 11:49:11 +00:00
|
|
|
|
|
|
|
{
|
2016-12-26 15:09:07 +00:00
|
|
|
inherit (eval.config._module.args) pkgs;
|
2016-12-15 19:29:51 +00:00
|
|
|
inherit (eval) options config;
|
2016-12-11 11:49:11 +00:00
|
|
|
inherit system;
|
|
|
|
}
|