diff options
| author | tv <tv@krebsco.de> | 2026-11-26 16:42:31 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-26 16:48:26 +0000 |
| commit | 4757548fc4ab2d3eda41a3b233997fc11670d587 (patch) | |
| tree | 235661d2fd0bf6da58688e260ee78ef09d286629 /legacy.nix | |
| parent | c9cd202a6215af49248916d091e828450fd8a75f (diff) | |
legacy.nix: add buildSystem
Diffstat (limited to 'legacy.nix')
| -rw-r--r-- | legacy.nix | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
