From 91a3e0c400e1a8f02a6aa2cb2ae4edd6149574e5 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 28 Nov 2024 12:08:24 +0100 Subject: [PATCH] feat(x86_64-linux): add IPU6 platform configuration Introduce a new module, ipu.nix, enabling IPU6 platform support. This change aids in configuring specific hardware settings and includes the setup for future kernel package adjustments. The IPU6 module is prepared for integration but is currently commented out in the imports for further testing. --- systems/x86_64-linux/x1/default.nix | 5 ++++- systems/x86_64-linux/x1/ipu.nix | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 systems/x86_64-linux/x1/ipu.nix diff --git a/systems/x86_64-linux/x1/default.nix b/systems/x86_64-linux/x1/default.nix index aa101fa..433d923 100644 --- a/systems/x86_64-linux/x1/default.nix +++ b/systems/x86_64-linux/x1/default.nix @@ -2,7 +2,10 @@ with lib; with lib.metacfg; { - imports = [ ./hardware-configuration.nix ]; + imports = [ + ./hardware-configuration.nix + # ./ipu.nix + ]; metacfg = { base.enable = true; diff --git a/systems/x86_64-linux/x1/ipu.nix b/systems/x86_64-linux/x1/ipu.nix new file mode 100644 index 0000000..204b08e --- /dev/null +++ b/systems/x86_64-linux/x1/ipu.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + pkgs, + modulesPath, + ... +}: + +{ + #boot.kernelPackages = lib.mkForce pkgs.linuxPackages_6_11; + + hardware.ipu6 = { + platform = "ipu6ep"; + enable = true; + }; +}