From 66c9de5ab01f1c71fe2f690e3ea87c50d9b2fadd Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 30 Nov 2024 15:36:42 +0800 Subject: [PATCH] hosts/ni: update AMD hardware config --- configs/flake-parts/nixos.nix | 3 +++ flake.lock | 16 ++++++++++++++++ flake.nix | 3 +++ 3 files changed, 22 insertions(+) diff --git a/configs/flake-parts/nixos.nix b/configs/flake-parts/nixos.nix index 311786b2..4b4047e6 100644 --- a/configs/flake-parts/nixos.nix +++ b/configs/flake-parts/nixos.nix @@ -33,6 +33,9 @@ in ../../modules/wrapper-manager/_private ]; } + + inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate + inputs.nixos-hardware.nixosModules.common-cpu-amd-raphael-igpu ]; home-manager = { branch = "home-manager-unstable"; diff --git a/flake.lock b/flake.lock index 7081e248..192b3733 100644 --- a/flake.lock +++ b/flake.lock @@ -819,6 +819,21 @@ "type": "github" } }, + "nixos-hardware": { + "locked": { + "lastModified": 1732483221, + "narHash": "sha256-kF6rDeCshoCgmQz+7uiuPdREVFuzhIorGOoPXMalL2U=", + "owner": "NixOS", + "repo": "nixos-hardware", + "rev": "45348ad6fb8ac0e8415f6e5e96efe47dd7f39405", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixos-hardware", + "type": "github" + } + }, "nixos-stable": { "locked": { "lastModified": 1731797254, @@ -1048,6 +1063,7 @@ "neovim-nightly-overlay": "neovim-nightly-overlay", "nix-index-database": "nix-index-database", "nixos-generators": "nixos-generators", + "nixos-hardware": "nixos-hardware", "nixos-stable": "nixos-stable", "nixos-unstable": "nixos-unstable", "nixos-unstable-small": "nixos-unstable-small", diff --git a/flake.nix b/flake.nix index 30230985..7b008d73 100644 --- a/flake.nix +++ b/flake.nix @@ -57,6 +57,9 @@ # This is what AUR strives to be. nur.url = "github:nix-community/NUR"; + # Configure those quirky hardware for you. + nixos-hardware.url = "github:NixOS/nixos-hardware"; + # Generate your NixOS systems to various formats! nixos-generators.url = "github:nix-community/nixos-generators"; nixos-generators.inputs.nixpkgs.follows = "nixpkgs";