mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
nix: add warning for distributed builds
This commit is contained in:
parent
b074b6634d
commit
c2a0025f7a
1 changed files with 4 additions and 2 deletions
|
@ -308,8 +308,10 @@ in
|
|||
|
||||
config = {
|
||||
|
||||
warnings = mkIf (!config.services.activate-system.enable && cfg.distributedBuilds)
|
||||
[ "services.activate-system is not enabled, a reboot could cause distributed builds to stop working." ];
|
||||
warnings = [
|
||||
(mkIf (!config.services.activate-system.enable && cfg.distributedBuilds) "services.activate-system is not enabled, a reboot could cause distributed builds to stop working.")
|
||||
(mkIf (!cfg.distributedBuilds && cfg.buildMachines != []) "nix.distributedBuilds is not enabled, build machines won't be configured.")
|
||||
];
|
||||
|
||||
nix.binaryCaches = mkAfter [ https://cache.nixos.org/ ];
|
||||
nix.binaryCachePublicKeys = mkAfter [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
||||
|
|
Loading…
Add table
Reference in a new issue