From 9888ae0d07d5d3f1d10a465a4d3d7b94236adfb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Wed, 20 Nov 2024 16:46:09 +0100 Subject: [PATCH] `nixpkgs.hostPlatform` --- infra/common/default.nix | 7 +++++++ infra/vm02116/hardware-configuration.nix | 2 -- infra/vm02179/hardware-configuration.nix | 2 -- infra/vm02186/hardware-configuration.nix | 2 -- infra/vm02187/hardware-configuration.nix | 2 -- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/infra/common/default.nix b/infra/common/default.nix index 1cf40fe..687fd58 100644 --- a/infra/common/default.nix +++ b/infra/common/default.nix @@ -1,3 +1,9 @@ +{ lib, ... }: + +let + inherit (lib) mkDefault; + +in { imports = [ ./hardware.nix @@ -8,4 +14,5 @@ time.timeZone = "Europe/Amsterdam"; i18n.defaultLocale = "en_US.UTF-8"; system.stateVersion = "24.05"; # do not change + nixpkgs.hostPlatform = mkDefault "x86_64-linux"; } diff --git a/infra/vm02116/hardware-configuration.nix b/infra/vm02116/hardware-configuration.nix index 2110792..202d8bb 100644 --- a/infra/vm02116/hardware-configuration.nix +++ b/infra/vm02116/hardware-configuration.nix @@ -12,6 +12,4 @@ }; networking.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/infra/vm02179/hardware-configuration.nix b/infra/vm02179/hardware-configuration.nix index 36a2506..391f2f9 100644 --- a/infra/vm02179/hardware-configuration.nix +++ b/infra/vm02179/hardware-configuration.nix @@ -16,6 +16,4 @@ }; networking.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/infra/vm02186/hardware-configuration.nix b/infra/vm02186/hardware-configuration.nix index d2d567f..0ed6ebc 100644 --- a/infra/vm02186/hardware-configuration.nix +++ b/infra/vm02186/hardware-configuration.nix @@ -16,6 +16,4 @@ }; networking.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; } diff --git a/infra/vm02187/hardware-configuration.nix b/infra/vm02187/hardware-configuration.nix index 24a8a49..4d9eefc 100644 --- a/infra/vm02187/hardware-configuration.nix +++ b/infra/vm02187/hardware-configuration.nix @@ -16,6 +16,4 @@ }; networking.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }