fix nixos machines without hostPlatform

This commit is contained in:
Jörg Thalheim
2024-09-29 19:51:41 +02:00
parent 2e57a94e42
commit 294634ec62
5 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,6 @@
{
pkgs,
lib,
config,
...
}:
let
@@ -30,6 +29,7 @@
clan.core.networking.targetHost = "machine";
networking.hostName = "machine";
services.openssh.settings.UseDns = false;
nixpkgs.hostPlatform = "x86_64-linux";
programs.ssh.knownHosts = {
machine.hostNames = [ "machine" ];

View File

@@ -20,13 +20,13 @@
environment.etc."install-successful".text = "ok";
nixpkgs.hostPlatform = "x86_64-linux";
boot.consoleLogLevel = lib.mkForce 100;
boot.kernelParams = [ "boot.shell_on_fail" ];
};
};
perSystem =
{
nodes,
pkgs,
lib,
...

View File

@@ -18,6 +18,7 @@ in
# Dummy file system
fileSystems."/".device = "/dev/null";
boot.loader.grub.device = "/dev/null";
nixpkgs.hostPlatform = "x86_64-linux";
imports = [
documentationModule
];

View File

@@ -146,6 +146,7 @@ in
{ foo, ... }:
{
networking.hostName = foo;
nixpkgs.hostPlatform = "x86_64-linux";
};
};
in

View File

@@ -0,0 +1,4 @@
{
"version": 1,
"system": "x86_64-linux"
}