From 16d5c3090ea64a11699f80096747c1e270045678 Mon Sep 17 00:00:00 2001 From: kB01 Date: Sat, 16 Nov 2024 05:57:02 +0100 Subject: [PATCH] Updated Remote-Build Config --- systems/x86_64-linux/HyperC/default.nix | 43 ++++++++++++++------ systems/x86_64-linux/kb-games-01/default.nix | 1 - systems/x86_64-linux/voloxo/default.nix | 1 - 3 files changed, 30 insertions(+), 15 deletions(-) diff --git a/systems/x86_64-linux/HyperC/default.nix b/systems/x86_64-linux/HyperC/default.nix index 3899916..6f5d822 100644 --- a/systems/x86_64-linux/HyperC/default.nix +++ b/systems/x86_64-linux/HyperC/default.nix @@ -24,6 +24,31 @@ "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; powerManagement.cpufreq.max = 3500000; # powerManagement.cpufreq.min = 400000; @@ -228,21 +253,13 @@ services.transmission.settings = { download-dir = "${config.services.transmission.home}/Torrents"; }; - # Enable the OpenSSH daemon. - # services.openssh.enable = true; - # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; + services.nix-serve = { + enable = true; + secretKeyFile = "/var/cache-HyperC-priv-key.pem"; + }; + - # 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. It‘s 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? } diff --git a/systems/x86_64-linux/kb-games-01/default.nix b/systems/x86_64-linux/kb-games-01/default.nix index 1991c00..8d9352b 100644 --- a/systems/x86_64-linux/kb-games-01/default.nix +++ b/systems/x86_64-linux/kb-games-01/default.nix @@ -7,7 +7,6 @@ # Configure Nix nix.settings.experimental-features = [ "nix-command" "flakes" ]; - nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP nix.settings.trusted-public-keys = [ "cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU=" ]; diff --git a/systems/x86_64-linux/voloxo/default.nix b/systems/x86_64-linux/voloxo/default.nix index f068013..4f7263d 100644 --- a/systems/x86_64-linux/voloxo/default.nix +++ b/systems/x86_64-linux/voloxo/default.nix @@ -14,7 +14,6 @@ "electron-27.3.11" "olm-3.2.16" ]; - nix.settings.trusted-users = [ "remotebuild" ]; # UNSAVE, Remove ASAP nix.settings.trusted-public-keys = [ "cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU=" ];