mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-11-05 05:43:12 +03:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ pkgs ? import <nixpkgs> {}, config ? <darwin-config> }:
|
|
|
|
let
|
|
|
|
eval = pkgs.lib.evalModules {
|
|
check = true;
|
|
modules =
|
|
[ config
|
|
./modules/system
|
|
./modules/system/activation-scripts.nix
|
|
./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
|
|
./modules/system/etc.nix
|
|
./modules/system/launchd.nix
|
|
./modules/time
|
|
./modules/nix
|
|
./modules/nix/nix-darwin.nix
|
|
./modules/nix/nixpkgs.nix
|
|
./modules/environment
|
|
./modules/launchd
|
|
./modules/services/activate-system.nix
|
|
./modules/services/nix-daemon.nix
|
|
./modules/programs/bash.nix
|
|
./modules/programs/nix-script.nix
|
|
./modules/programs/tmux.nix
|
|
./modules/programs/vim.nix
|
|
./modules/programs/zsh.nix
|
|
];
|
|
};
|
|
|
|
system = eval.config.system.build.toplevel;
|
|
|
|
in
|
|
|
|
{
|
|
inherit (eval.config._module.args) pkgs;
|
|
inherit (eval) options config;
|
|
inherit system;
|
|
}
|