hosts: define hostPlatform in defined systems
instead of getting them impurely from `builtins.currentSystem`
This commit is contained in:
parent
88b4c772d0
commit
fa78b20872
4 changed files with 6 additions and 0 deletions
|
@ -83,6 +83,8 @@
|
|||
OLLAMA_HOST = "127.0.0.1:${builtins.toString config.services.ollama.port}";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -52,6 +52,8 @@
|
|||
lidSwitchExternalPower = "lock";
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -20,5 +20,6 @@
|
|||
virtualisation.forwardPorts = [
|
||||
{ from = "host"; host.port = 2222; guest.port = 22; }
|
||||
];
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ self = {
|
|||
nixosSystem = import "${inputs.nixpkgs}/nixos/lib/eval-config.nix";
|
||||
mkNixosSystem = path: nixosSystem {
|
||||
inherit lib;
|
||||
system = null;
|
||||
modules = [
|
||||
path
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue