summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--legacy.nix4
1 files changed, 4 insertions, 0 deletions
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 <secrets>.
, 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