hardware: Add microcode updates
This commit is contained in:
parent
7445d7c5c0
commit
3a4a16bf20
@ -10,7 +10,7 @@ in mkHost {
|
|||||||
userName = "alexander";
|
userName = "alexander";
|
||||||
hostName = "miku";
|
hostName = "miku";
|
||||||
overlays = [ "nur" "steam" "unstable" "simple" "custom" "emacs" ];
|
overlays = [ "nur" "steam" "unstable" "simple" "custom" "emacs" ];
|
||||||
hardwareImports = [ "amdgpu" ];
|
hardwareImports = [ "amdgpu" "amd" ];
|
||||||
programImports = [
|
programImports = [
|
||||||
"zsh" "git" "mpv" "tmux" "emacs" "firefox" "gnome-terminal" "gnome" "i18n" "gamemode" "nonvm"
|
"zsh" "git" "mpv" "tmux" "emacs" "firefox" "gnome-terminal" "gnome" "i18n" "gamemode" "nonvm"
|
||||||
"distributed-build/builder.nix"
|
"distributed-build/builder.nix"
|
||||||
|
5
modules/hardware/amd.nix
Normal file
5
modules/hardware/amd.nix
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
}
|
@ -3,7 +3,11 @@
|
|||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.opengl.extraPackages = with pkgs; [ vaapiIntel intel-media-driver ];
|
hardware = {
|
||||||
|
cpu.intel.updateMicrocode = true;
|
||||||
|
# NOTE: Assuming each Intel CPU has integrated graphics
|
||||||
|
opengl.extraPackages = with pkgs; [ vaapiIntel intel-media-driver ];
|
||||||
|
};
|
||||||
# TODO: Remove?
|
# TODO: Remove?
|
||||||
services.xserver.videoDrivers = [ "modesetting" "fbdev" ];
|
services.xserver.videoDrivers = [ "modesetting" "fbdev" ];
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ let
|
|||||||
|
|
||||||
# We don't tolerate non-free software, except for Steam and Linux firmware
|
# We don't tolerate non-free software, except for Steam and Linux firmware
|
||||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
"firmwareLinuxNonfree"
|
"firmwareLinuxNonfree" "microcodeAmd" "microcodeIntel"
|
||||||
"steam" "steam-original" "steam-runtime"
|
"steam" "steam-original" "steam-runtime"
|
||||||
"discord"
|
"discord"
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user