feat(build): enable distributed builds and caching setup
- Added Nix distributed build configuration for multiple machines. - Introduced caching setup with substituters and sandbox paths. - Enabled optional build configurations with ccache support.
This commit is contained in:
parent
55af1a9cad
commit
143e8cbf98
5 changed files with 127 additions and 5 deletions
17
modules/darwin/services/build/default.nix
Normal file
17
modules/darwin/services/build/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
with lib;
|
||||
with lib.metacfg;
|
||||
let
|
||||
cfg = config.metacfg.build;
|
||||
in
|
||||
{
|
||||
options.metacfg.build = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable the build config.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable { };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue