2017-01-15 11:51:00 +03:00
|
|
|
{ nixpkgs ? <nixpkgs>, configuration ? <darwin-config>, system ? builtins.currentSystem
|
|
|
|
, pkgs ? import nixpkgs { inherit system; }
|
|
|
|
}:
|
2016-12-10 14:57:09 +03:00
|
|
|
|
|
|
|
let
|
|
|
|
|
2017-01-15 11:51:00 +03:00
|
|
|
packages = { config, lib, pkgs, ... }: {
|
|
|
|
config = {
|
2018-01-07 01:20:43 +03:00
|
|
|
_module.args.pkgs = import nixpkgs config.nixpkgs;
|
|
|
|
nixpkgs.system = system;
|
2017-01-15 11:51:00 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-12-10 14:57:09 +03:00
|
|
|
eval = pkgs.lib.evalModules {
|
2017-10-20 23:19:26 +03:00
|
|
|
specialArgs = { modulesPath = ./modules; };
|
2016-12-10 14:57:09 +03:00
|
|
|
check = true;
|
|
|
|
modules =
|
2017-01-06 23:55:50 +03:00
|
|
|
[ configuration
|
2017-01-15 11:51:00 +03:00
|
|
|
packages
|
2017-01-10 00:30:15 +03:00
|
|
|
./modules/alias.nix
|
2016-12-10 14:57:09 +03:00
|
|
|
./modules/system
|
2017-07-23 17:05:46 +03:00
|
|
|
./modules/system/activation-checks.nix
|
2016-12-10 14:57:09 +03:00
|
|
|
./modules/system/activation-scripts.nix
|
2016-12-14 15:05:23 +03: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
|
2018-01-05 02:15:11 +03:00
|
|
|
./modules/system/defaults/smb.nix
|
2016-12-14 15:05:23 +03:00
|
|
|
./modules/system/defaults/trackpad.nix
|
2017-05-20 15:23:05 +03:00
|
|
|
./modules/system/applications.nix
|
2016-12-10 14:57:09 +03:00
|
|
|
./modules/system/etc.nix
|
|
|
|
./modules/system/launchd.nix
|
2017-12-14 01:02:11 +03:00
|
|
|
./modules/system/shells.nix
|
2017-10-01 17:11:17 +03:00
|
|
|
./modules/system/version.nix
|
2016-12-16 14:20:28 +03:00
|
|
|
./modules/time
|
2017-07-05 12:32:36 +03:00
|
|
|
./modules/networking
|
2016-12-15 15:26:22 +03:00
|
|
|
./modules/nix
|
2016-12-12 19:34:43 +03:00
|
|
|
./modules/nix/nix-darwin.nix
|
2017-10-20 23:23:51 +03:00
|
|
|
./modules/nix/nix-info.nix
|
2016-12-11 18:24:37 +03:00
|
|
|
./modules/nix/nixpkgs.nix
|
2016-12-10 14:57:09 +03:00
|
|
|
./modules/environment
|
|
|
|
./modules/launchd
|
2017-07-17 22:44:57 +03:00
|
|
|
./modules/services/activate-system
|
2017-06-29 08:24:02 +03:00
|
|
|
./modules/services/chunkwm.nix
|
2017-02-19 13:20:26 +03:00
|
|
|
./modules/services/emacs.nix
|
2017-09-07 23:39:35 +03:00
|
|
|
./modules/services/khd
|
|
|
|
./modules/services/kwm
|
2017-03-17 23:34:10 +03:00
|
|
|
./modules/services/mopidy.nix
|
2016-12-10 14:57:09 +03:00
|
|
|
./modules/services/nix-daemon.nix
|
2017-07-17 22:42:27 +03:00
|
|
|
./modules/services/nix-gc
|
2017-07-02 19:39:07 +03:00
|
|
|
./modules/services/postgresql
|
2017-09-07 23:39:35 +03:00
|
|
|
./modules/services/redis
|
2016-12-13 01:51:08 +03:00
|
|
|
./modules/programs/bash.nix
|
2017-01-03 06:42:13 +03:00
|
|
|
./modules/programs/fish.nix
|
2017-05-12 23:11:13 +03:00
|
|
|
./modules/programs/man.nix
|
2017-05-21 11:51:01 +03:00
|
|
|
./modules/programs/info
|
2017-07-29 00:17:53 +03:00
|
|
|
./modules/programs/nix-index
|
2016-12-27 22:41:27 +03:00
|
|
|
./modules/programs/nix-script.nix
|
2016-12-10 14:57:09 +03:00
|
|
|
./modules/programs/tmux.nix
|
2016-12-18 15:52:03 +03:00
|
|
|
./modules/programs/vim.nix
|
2017-01-31 01:04:29 +03:00
|
|
|
./modules/programs/zsh
|
2016-12-10 14:57:09 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
2016-12-11 14:49:11 +03:00
|
|
|
|
|
|
|
{
|
2016-12-26 18:09:07 +03:00
|
|
|
inherit (eval.config._module.args) pkgs;
|
2016-12-15 22:29:51 +03:00
|
|
|
inherit (eval) options config;
|
2017-01-15 11:51:00 +03:00
|
|
|
|
|
|
|
system = eval.config.system.build.toplevel;
|
2016-12-11 14:49:11 +03:00
|
|
|
}
|