mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
74 lines
2.1 KiB
Nix
74 lines
2.1 KiB
Nix
{ nixpkgs ? <nixpkgs>, configuration ? <darwin-config>, system ? builtins.currentSystem
|
|
, pkgs ? import nixpkgs { inherit system; }
|
|
}:
|
|
|
|
let
|
|
|
|
packages = { config, lib, pkgs, ... }: {
|
|
config = {
|
|
_module.args.pkgs = import nixpkgs {
|
|
inherit system;
|
|
inherit (config.nixpkgs) config;
|
|
};
|
|
};
|
|
};
|
|
|
|
eval = pkgs.lib.evalModules {
|
|
specialArgs = { modulesPath = ./modules; };
|
|
check = true;
|
|
modules =
|
|
[ configuration
|
|
packages
|
|
./modules/alias.nix
|
|
./modules/system
|
|
./modules/system/activation-checks.nix
|
|
./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/applications.nix
|
|
./modules/system/etc.nix
|
|
./modules/system/launchd.nix
|
|
./modules/system/version.nix
|
|
./modules/time
|
|
./modules/networking
|
|
./modules/nix
|
|
./modules/nix/nix-darwin.nix
|
|
./modules/nix/nix-info.nix
|
|
./modules/nix/nixpkgs.nix
|
|
./modules/environment
|
|
./modules/launchd
|
|
./modules/security
|
|
./modules/services/activate-system
|
|
./modules/services/chunkwm.nix
|
|
./modules/services/emacs.nix
|
|
./modules/services/khd
|
|
./modules/services/kwm
|
|
./modules/services/mopidy.nix
|
|
./modules/services/nix-daemon.nix
|
|
./modules/services/nix-gc
|
|
./modules/services/postgresql
|
|
./modules/services/redis
|
|
./modules/programs/bash.nix
|
|
./modules/programs/fish.nix
|
|
./modules/programs/man.nix
|
|
./modules/programs/info
|
|
./modules/programs/nix-index
|
|
./modules/programs/nix-script.nix
|
|
./modules/programs/tmux.nix
|
|
./modules/programs/vim.nix
|
|
./modules/programs/zsh
|
|
];
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
inherit (eval.config._module.args) pkgs;
|
|
inherit (eval) options config;
|
|
|
|
system = eval.config.system.build.toplevel;
|
|
}
|