1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-11-09 20:38:22 +03:00
nix-darwin/default.nix

74 lines
2.1 KiB
Nix
Raw Normal View History

{ nixpkgs ? <nixpkgs>, configuration ? <darwin-config>, system ? builtins.currentSystem
, pkgs ? import nixpkgs { inherit system; }
}:
let
packages = { config, lib, pkgs, ... }: {
config = {
2018-01-07 01:20:43 +03:00
_module.args.pkgs = import nixpkgs config.nixpkgs;
nixpkgs.system = system;
};
};
eval = pkgs.lib.evalModules {
2017-10-20 23:19:26 +03:00
specialArgs = { modulesPath = ./modules; };
check = true;
modules =
[ configuration
packages
./modules/alias.nix
./modules/system
2017-07-23 17:05:46 +03:00
./modules/system/activation-checks.nix
./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
./modules/system/applications.nix
./modules/system/etc.nix
./modules/system/launchd.nix
./modules/system/shells.nix
./modules/system/version.nix
2016-12-16 14:20:28 +03:00
./modules/time
./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
./modules/environment
./modules/launchd
./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
./modules/services/mopidy.nix
./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
./modules/programs/fish.nix
./modules/programs/man.nix
./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
./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
];
};
in
{
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;
system = eval.config.system.build.toplevel;
}