Updated Remote-Build Config

This commit is contained in:
Kaybee 2024-11-16 05:57:02 +01:00
parent 1a8e0c9a1d
commit 16d5c3090e
3 changed files with 30 additions and 15 deletions

View file

@ -24,6 +24,31 @@
"steam-unwrapped" "steam-unwrapped"
]; ];
# Configure Remote Builds
nix.settings.trusted-public-keys = [
"cache.kb-games-01:Y9lGS9lw+grILNY+Mmw498mMoBQcYE+OqTpOHBAOajw="
];
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "kb-games-01-remotebuild";
system = "x86_64-linux";
maxJobs = 4;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ "big-parallel" ];
}
{
hostName = "voloxo-remotebuild";
system = "x86_64-linux";
maxJobs = 6;
speedFactor = 6;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ "big-parallel" ];
}
];
# services.tlp.enable = true; # services.tlp.enable = true;
powerManagement.cpufreq.max = 3500000; powerManagement.cpufreq.max = 3500000;
# powerManagement.cpufreq.min = 400000; # powerManagement.cpufreq.min = 400000;
@ -228,21 +253,13 @@
services.transmission.settings = { services.transmission.settings = {
download-dir = "${config.services.transmission.home}/Torrents"; download-dir = "${config.services.transmission.home}/Torrents";
}; };
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall. services.nix-serve = {
# networking.firewall.allowedTCPPorts = [ ... ]; enable = true;
# networking.firewall.allowedUDPPorts = [ ... ]; secretKeyFile = "/var/cache-HyperC-priv-key.pem";
# Or disable the firewall altogether. };
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment? system.stateVersion = "24.05"; # Did you read the comment?
} }

View file

@ -7,7 +7,6 @@
# Configure Nix # Configure Nix
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP
nix.settings.trusted-public-keys = [ nix.settings.trusted-public-keys = [
"cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU=" "cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU="
]; ];

View file

@ -14,7 +14,6 @@
"electron-27.3.11" "electron-27.3.11"
"olm-3.2.16" "olm-3.2.16"
]; ];
nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP
nix.settings.trusted-public-keys = [ nix.settings.trusted-public-keys = [
"cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU=" "cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU="
]; ];