feat: add ucodenix and auto update microcode

This commit is contained in:
Youwen Wu 2024-11-12 15:35:52 -08:00
parent a4e83309b7
commit 636a7529c7
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
4 changed files with 32 additions and 0 deletions

View file

@ -850,6 +850,7 @@
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"spicetify": "spicetify", "spicetify": "spicetify",
"stylix": "stylix", "stylix": "stylix",
"ucode": "ucode",
"vesktop-bin": "vesktop-bin", "vesktop-bin": "vesktop-bin",
"viminal": "viminal", "viminal": "viminal",
"wallpapers": "wallpapers", "wallpapers": "wallpapers",
@ -1090,6 +1091,26 @@
"type": "github" "type": "github"
} }
}, },
"ucode": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1731428847,
"narHash": "sha256-x+Q0I+R+aBZoJIEuBFDDJFjFu+todWsZJXrQkAuVh/o=",
"owner": "e-tho",
"repo": "ucodenix",
"rev": "404f4adc330b4a4047cecbc4457d4ae2abe69bed",
"type": "github"
},
"original": {
"owner": "e-tho",
"repo": "ucodenix",
"type": "github"
}
},
"vesktop-bin": { "vesktop-bin": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [

View file

@ -45,6 +45,11 @@
inputs.flake-parts.follows = "flake-parts"; inputs.flake-parts.follows = "flake-parts";
}; };
ucode = {
url = "github:e-tho/ucodenix";
inputs.nixpkgs.follows = "nixpkgs";
};
lix-module = { lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz"; url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";

View file

@ -59,6 +59,11 @@
initrd.systemd.enable = true; initrd.systemd.enable = true;
}; };
services.ucodenix = {
enable = true;
cpuModelId = "00A50F00";
};
# boot.lanzaboote = { # boot.lanzaboote = {
# enable = false; # enable = false;
# pkiBundle = "/etc/secureboot"; # pkiBundle = "/etc/secureboot";

View file

@ -46,5 +46,6 @@
++ (with inputs; [ ++ (with inputs; [
lix-module.nixosModules.default lix-module.nixosModules.default
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
ucode.nixosModules.default
]); ]);
} }