chore(nixbuild): uncomment substituters and add buffer size
- Uncommented the `substituters` configuration to enable builder access settings in `nixbuild.nix`. - Added `download-buffer-size` setting to optimize Nix download performance.
This commit is contained in:
parent
deab8f8a2b
commit
51cb9e4a90
1 changed files with 2 additions and 2 deletions
|
|
@ -30,14 +30,12 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
|
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
"ssh-ng://harald@m4?ssh-key=/etc/ssh/nix-builder-key"
|
"ssh-ng://harald@m4?ssh-key=/etc/ssh/nix-builder-key"
|
||||||
"ssh-ng://harald@rialo?ssh-key=/etc/ssh/nix-builder-key"
|
"ssh-ng://harald@rialo?ssh-key=/etc/ssh/nix-builder-key"
|
||||||
"ssh-ng://harald@sgx?ssh-key=/etc/ssh/nix-builder-key"
|
"ssh-ng://harald@sgx?ssh-key=/etc/ssh/nix-builder-key"
|
||||||
];
|
];
|
||||||
|
|
||||||
builders-use-substitutes = true;
|
builders-use-substitutes = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -46,4 +44,6 @@
|
||||||
set -gx PATH /nix/var/nix/profiles/default/bin $PATH
|
set -gx PATH /nix/var/nix/profiles/default/bin $PATH
|
||||||
set -gx PATH /run/current-system/sw/bin $PATH
|
set -gx PATH /run/current-system/sw/bin $PATH
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nix.settings.download-buffer-size = 524288000;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue