darwin: enable linux builder
This commit is contained in:
parent
f5d55c6a60
commit
872ab45e0b
1 changed files with 20 additions and 0 deletions
|
|
@ -4,6 +4,26 @@
|
||||||
# auto upgrade nix package and the daemon service.
|
# auto upgrade nix package and the daemon service.
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
|
|
||||||
|
# enable the linux builder
|
||||||
|
nix.linux-builder = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.darwin.linux-builder-x86_64;
|
||||||
|
ephemeral = true;
|
||||||
|
maxJobs = 4;
|
||||||
|
config = {
|
||||||
|
virtualisation = {
|
||||||
|
darwin-builder = {
|
||||||
|
diskSize = 40 * 1024;
|
||||||
|
memorySize = 8 * 1024;
|
||||||
|
};
|
||||||
|
cores = 6;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# enable trusted users
|
||||||
|
nix.settings.trusted-users = [ "@admin" ];
|
||||||
|
|
||||||
# nix auto garbage collection
|
# nix auto garbage collection
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue