From c80c5dcdca34e3432fa954104cda85812980aae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 29 Sep 2024 17:52:27 +0200 Subject: [PATCH] deprecate passing in system with nixosConfiguration we have this information in both hardware-configuration.nix and factor, so we don't want to pass this in from the outside. --- lib/build-clan/module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/build-clan/module.nix b/lib/build-clan/module.nix index 06742af4e..443a7d025 100644 --- a/lib/build-clan/module.nix +++ b/lib/build-clan/module.nix @@ -55,7 +55,7 @@ let # TODO: remove default system once we have a hardware-config mechanism nixosConfiguration = { - system ? "x86_64-linux", + system ? null, name, pkgs ? null, extraConfig ? { }, @@ -92,7 +92,7 @@ let # Machine specific settings clan.core.machineName = name; networking.hostName = lib.mkDefault name; - nixpkgs.hostPlatform = lib.mkDefault system; + nixpkgs.hostPlatform = lib.mkIf (system != null) (lib.mkDefault system); # speeds up nix commands by using the nixpkgs from the host system (especially useful in VMs) nix.registry.nixpkgs.to = {