amd microcode patch

This commit is contained in:
Danilo Reyes 2024-11-12 09:14:37 -06:00
parent f9bfed965b
commit 09a816f5cb
3 changed files with 46 additions and 5 deletions

37
flake.lock generated
View File

@ -454,6 +454,22 @@
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1730531603,
"narHash": "sha256-Dqg6si5CqIzm87sp57j5nTaeBbWhHFaVyG7V6L8k3lY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7ffd9ae656aec493492b44d0ddfb28e79a1ea25d",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1727348695,
"narHash": "sha256-J+PeFKSDV+pHL7ukkfpVzCOO7mBSrrpJ3svwBFABbhI=",
@ -502,6 +518,7 @@
"nixpkgs": "nixpkgs_3",
"nixpkgsC": "nixpkgsC",
"sops-nix": "sops-nix",
"ucodenix": "ucodenix",
"zen-browser": "zen-browser"
}
},
@ -562,6 +579,24 @@
"type": "github"
}
},
"ucodenix": {
"inputs": {
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1731370323,
"narHash": "sha256-o2+w8Eda2vUN5TtFiheUXReTxd1YNlAg1g1kVKXI1cI=",
"owner": "e-tho",
"repo": "ucodenix",
"rev": "718ff785d5c12cb2ec136b13d423b2e808ffeddc",
"type": "github"
},
"original": {
"owner": "e-tho",
"repo": "ucodenix",
"type": "github"
}
},
"umu": {
"inputs": {
"nixpkgs": [
@ -630,7 +665,7 @@
},
"zen-browser": {
"inputs": {
"nixpkgs": "nixpkgs_4"
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1727721329,

View File

@ -7,6 +7,7 @@
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
ucodenix.url = "github:e-tho/ucodenix";
nix-gaming.url = "github:fufexan/nix-gaming";
hyprland.url = "github:hyprwm/Hyprland";
sops-nix = {

View File

@ -1,14 +1,19 @@
{
config,
modulesPath,
lib,
pkgs,
inputs,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
inputs.ucodenix.nixosModules.default
];
services.ucodenix = {
enable = true;
cpuModelId = "00A50F00";
};
hardware = {
cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
bluetooth = {
enable = true;
settings.General = {