diff --git a/flake.lock b/flake.lock index 1453b12..a040f94 100644 --- a/flake.lock +++ b/flake.lock @@ -271,6 +271,26 @@ "type": "github" } }, + "nixos-hardware": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1781020964, + "narHash": "sha256-fS7xTi2j2iso5Hj7RNZLv/acDlCT+fgMVkVk40A7Uco=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "32c2cd9e46286c4eced3dc6b613c659126bf3cca", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixos-wsl": { "inputs": { "flake-compat": "flake-compat_3", @@ -357,6 +377,7 @@ "nix-homebrew": "nix-homebrew", "nix-index-database": "nix-index-database", "nixos-apple-silicon": "nixos-apple-silicon", + "nixos-hardware": "nixos-hardware", "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", diff --git a/flake.nix b/flake.nix index 2773163..0b44d9e 100644 --- a/flake.nix +++ b/flake.nix @@ -54,6 +54,12 @@ url = "github:nix-community/nixvim/nixos-26.05"; inputs.nixpkgs.follows = "nixpkgs"; }; + # Curated per-hardware profiles (microcode, SSD, platform quirks) for the + # physical x86 hosts. + nixos-hardware = { + url = "github:NixOS/nixos-hardware"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -232,6 +238,13 @@ modules = [ ./system/machine/T400/configuration.nix ./system/modules/laptop.nix + # No t400-specific profile exists; compose the generic ThinkPad + + # laptop/SSD/Intel building blocks (tp_smapi/acpi_call for battery + # thresholds, SSD + microcode defaults). + inputs.nixos-hardware.nixosModules.lenovo-thinkpad + inputs.nixos-hardware.nixosModules.common-pc-laptop + inputs.nixos-hardware.nixosModules.common-pc-laptop-ssd + inputs.nixos-hardware.nixosModules.common-cpu-intel ./lyrathorpe/swaywm.nix ]; homeModules = [ @@ -248,6 +261,8 @@ modules = [ ./system/machine/MacPro31/configuration.nix ./system/modules/desktop.nix + inputs.nixos-hardware.nixosModules.common-pc-ssd + inputs.nixos-hardware.nixosModules.common-cpu-intel ./lyrathorpe/swaywm.nix ]; homeModules = [