Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I set different build flag for different remote machine? #302

Open
amalgame21 opened this issue Nov 13, 2024 · 1 comment
Open

Can I set different build flag for different remote machine? #302

amalgame21 opened this issue Nov 13, 2024 · 1 comment

Comments

@amalgame21
Copy link

I am using deploy-rs to deploy raspberry pi
I am unable to configure cross-compiling ( qemu method too slow , nixpkgs.buildPlatform / nixpkgs.hostPlatform don't pull binary cache), so I set remoteBuild = true; instead.
But I still want to deploy with --max-job 1 --cores 1 flag because sometimes it ran out of ram and abort.
I know that I can run deploy .#pi -- --max-job 1 --cores 1, but I want a single command solution for all host.
like deploy . to deploy all remote server, deploy --targets .#pi .#other-host for others, I can use one command to take care or multiple servers.

It would be great if we can set it in the flake.

@sedlund
Copy link

sedlund commented Nov 14, 2024

Configure your system:

nix.settings.cores
nix.settings.max-jobs

I suggest you get on matrix chat for help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants