Add CPU micro code updater
This commit is contained in:
parent
bd5a8ad917
commit
5582cd6ad9
3 changed files with 94 additions and 38 deletions
|
@ -2,7 +2,13 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, unstable, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
unstable,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
# let
|
# let
|
||||||
# berkeley-mono-typeface = pkgs.callPackage ./packages/berkeley-mono-typeface.nix;
|
# berkeley-mono-typeface = pkgs.callPackage ./packages/berkeley-mono-typeface.nix;
|
||||||
|
@ -17,8 +23,14 @@
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
inputs.ucodenix.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.ucodenix = {
|
||||||
|
enable = true;
|
||||||
|
cpuModelId = "00A20F12"; # AMD 5900X
|
||||||
|
};
|
||||||
|
|
||||||
# Use the latest linux Kernel
|
# Use the latest linux Kernel
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
@ -163,51 +175,54 @@
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; with unstable; [
|
environment.systemPackages =
|
||||||
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
with pkgs;
|
||||||
# wget
|
with unstable;
|
||||||
fzf
|
[
|
||||||
nixfmt-rfc-style
|
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
dwarfs
|
# wget
|
||||||
|
fzf
|
||||||
|
nixfmt-rfc-style
|
||||||
|
dwarfs
|
||||||
|
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
||||||
winetricks
|
winetricks
|
||||||
steamtinkerlaunch
|
steamtinkerlaunch
|
||||||
|
|
||||||
amdgpu_top
|
amdgpu_top
|
||||||
mangohud
|
mangohud
|
||||||
|
|
||||||
unstable.svt-av1-psy
|
unstable.svt-av1-psy
|
||||||
unstable.ffmpeg-full
|
unstable.ffmpeg-full
|
||||||
unstable.ab-av1
|
unstable.ab-av1
|
||||||
unstable.whisper-cpp-vulkan
|
unstable.whisper-cpp-vulkan
|
||||||
|
|
||||||
vscode.fhs # .fhs version will be more compatable even if slightly less nix flavoured
|
vscode.fhs # .fhs version will be more compatable even if slightly less nix flavoured
|
||||||
|
|
||||||
openrazer-daemon
|
openrazer-daemon
|
||||||
|
|
||||||
# === nix related ===
|
# === nix related ===
|
||||||
comma
|
comma
|
||||||
nh
|
nh
|
||||||
# === nix related ===
|
# === nix related ===
|
||||||
|
|
||||||
rustc
|
rustc
|
||||||
cargo
|
cargo
|
||||||
go
|
go
|
||||||
pnpm
|
pnpm
|
||||||
zig
|
zig
|
||||||
maven
|
maven
|
||||||
gradle
|
gradle
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
# noisetorch
|
# noisetorch
|
||||||
# yad
|
# yad
|
||||||
# unzip
|
# unzip
|
||||||
# wget
|
# wget
|
||||||
# xdotool
|
# xdotool
|
||||||
# xxd
|
# xxd
|
||||||
# xorg.xwininfo
|
# xorg.xwininfo
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
programs.nix-ld.libraries = with pkgs; [
|
programs.nix-ld.libraries = with pkgs; [
|
||||||
|
|
36
nixos/flake.lock
generated
36
nixos/flake.lock
generated
|
@ -1,5 +1,22 @@
|
||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"cpu-microcodes": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1742753109,
|
||||||
|
"narHash": "sha256-hneAwNElAMkaTdToS6DUa47gFkXoIIR77CesMKUW21A=",
|
||||||
|
"owner": "platomav",
|
||||||
|
"repo": "CPUMicrocodes",
|
||||||
|
"rev": "f093bec842057ebf35d0525fcd69f649714f4485",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "platomav",
|
||||||
|
"repo": "CPUMicrocodes",
|
||||||
|
"rev": "f093bec842057ebf35d0525fcd69f649714f4485",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"home-manger": {
|
"home-manger": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
@ -40,9 +57,28 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"home-manger": "home-manger",
|
"home-manger": "home-manger",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
"ucodenix": "ucodenix",
|
||||||
"unstable": "unstable"
|
"unstable": "unstable"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"ucodenix": {
|
||||||
|
"inputs": {
|
||||||
|
"cpu-microcodes": "cpu-microcodes"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1742827057,
|
||||||
|
"narHash": "sha256-eRUBUdKGKHxCTPkF6zoQsIKPdu58AkiPU0bxX8nuRoQ=",
|
||||||
|
"owner": "e-tho",
|
||||||
|
"repo": "ucodenix",
|
||||||
|
"rev": "1e8747f89ed13826cd7698be5a559bdbc50258fe",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "e-tho",
|
||||||
|
"repo": "ucodenix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"unstable": {
|
"unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1742669843,
|
"lastModified": 1742669843,
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
home-manger.url = "github:nix-community/home-manager";
|
home-manger.url = "github:nix-community/home-manager";
|
||||||
home-manger.inputs.nixpkgs.follows = "nixpkgs";
|
home-manger.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
|
# CPU microcode updater
|
||||||
|
ucodenix.url = "github:e-tho/ucodenix";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -19,6 +22,7 @@
|
||||||
|
|
||||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
|
inherit inputs;
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
@ -31,6 +35,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue