2017-01-15 08:51:00 +00:00
|
|
|
{ nixpkgs ? <nixpkgs>, configuration ? <darwin-config>, system ? builtins.currentSystem
|
|
|
|
, pkgs ? import nixpkgs { inherit system; }
|
|
|
|
}:
|
2016-12-10 11:57:09 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-01-15 08:51:00 +00:00
|
|
|
packages = { config, lib, pkgs, ... }: {
|
|
|
|
config = {
|
|
|
|
_module.args.pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
inherit (config.nixpkgs) config;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-12-10 11:57:09 +00:00
|
|
|
eval = pkgs.lib.evalModules {
|
|
|
|
check = true;
|
|
|
|
modules =
|
2017-01-06 20:55:50 +00:00
|
|
|
[ configuration
|
2017-01-15 08:51:00 +00:00
|
|
|
packages
|
2017-01-09 21:30:15 +00:00
|
|
|
./modules/alias.nix
|
2016-12-10 11:57:09 +00:00
|
|
|
./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
|
2017-05-20 12:23:05 +00:00
|
|
|
./modules/system/applications.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
|
2017-07-05 09:32:36 +00:00
|
|
|
./modules/networking
|
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
|
2017-05-15 22:10:21 +00:00
|
|
|
./modules/security
|
2017-07-17 19:44:57 +00:00
|
|
|
./modules/services/activate-system
|
2017-05-20 11:01:25 +00:00
|
|
|
./modules/services/khd
|
2017-05-20 11:13:21 +00:00
|
|
|
./modules/services/kwm
|
2017-06-29 05:24:02 +00:00
|
|
|
./modules/services/chunkwm.nix
|
2017-02-19 10:20:26 +00:00
|
|
|
./modules/services/emacs.nix
|
2017-03-17 20:34:10 +00:00
|
|
|
./modules/services/mopidy.nix
|
2016-12-10 11:57:09 +00:00
|
|
|
./modules/services/nix-daemon.nix
|
2017-07-17 19:42:27 +00:00
|
|
|
./modules/services/nix-gc
|
2017-07-02 16:39:07 +00:00
|
|
|
./modules/services/postgresql
|
2016-12-12 22:51:08 +00:00
|
|
|
./modules/programs/bash.nix
|
2017-01-03 03:42:13 +00:00
|
|
|
./modules/programs/fish.nix
|
2017-05-12 20:11:13 +00:00
|
|
|
./modules/programs/man.nix
|
2017-05-21 08:51:01 +00:00
|
|
|
./modules/programs/info
|
2016-12-27 19:41:27 +00:00
|
|
|
./modules/programs/nix-script.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
|
2017-01-30 22:04:29 +00:00
|
|
|
./modules/programs/zsh
|
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;
|
2017-01-15 08:51:00 +00:00
|
|
|
|
|
|
|
system = eval.config.system.build.toplevel;
|
2016-12-11 11:49:11 +00:00
|
|
|
}
|