From 4757548fc4ab2d3eda41a3b233997fc11670d587 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 26 Nov 2026 16:42:31 +0000 Subject: legacy.nix: add buildSystem --- legacy.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy.nix b/legacy.nix index 77d981a8..59967cd6 100644 --- a/legacy.nix +++ b/legacy.nix @@ -53,6 +53,8 @@ , extraModules ? [] # Where the host has its secrets, instead of . , secretDirectory ? null +# The system that builds; null: the host's own. +, buildSystem ? builtins.currentSystem or null }: { nixosConfigurations = inputs.nixpkgs.lib.mapAttrs @@ -67,6 +69,8 @@ specialArgs = { inherit inputs; + buildSystem = if buildSystem == null then system else buildSystem; + lib = inputs.nixpkgs.lib // { # for stockholm. # without it krebs.hosts.*.nets.*.prefix breaks for ne -- cgit v1.3.1