mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
38 lines
546 B
Nix
38 lines
546 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
|
|
nix.settings = {
|
|
build-dir = "/var/lib/nix-build";
|
|
|
|
secret-key-files = [
|
|
"/var/lib/secrets/nix-cache-signing-key"
|
|
];
|
|
|
|
auto-optimise-store = lib.mkForce false;
|
|
keep-outputs = false;
|
|
keep-derivations = true;
|
|
};
|
|
|
|
services.harmonia.cache = {
|
|
enable = true;
|
|
|
|
signKeyPaths = [
|
|
"/var/lib/secrets/nix-cache-signing-key"
|
|
];
|
|
|
|
settings = {
|
|
bind = "[::]:5000";
|
|
priority = 30;
|
|
workers = 4;
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
5000
|
|
];
|
|
}
|