From 57efc70ea5f27540511267647a4300a49db38e0d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 21 Feb 2023 17:02:30 +0000 Subject: [PATCH] Update linode.nix --- systems/linode.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/systems/linode.nix b/systems/linode.nix index b8b7cc3..a07655d 100644 --- a/systems/linode.nix +++ b/systems/linode.nix @@ -10,10 +10,27 @@ boot.kernelParams = [ "console=ttyS0,19200n8" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; - + nix.settings.extra-platforms = [ "aarch64-linux" ]; + nix.settings.auto-optimise-store = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.buildMachines = [{ + hostName = "localhost"; + systems = ["x86_64-linux" + "aarch64-linux" + "x86_64-darwin" + "aarch64-darwin"]; + supportedFeatures = ["kvm" "nixos-test" "big-parallel" "benchmark"]; + maxJobs = 8; + }]; + + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + # Use the GRUB 2 boot loader. boot.loader.grub.enable = true; boot.loader.grub.version = 2;