nishimiya: Fix up
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ptw.hardware.amdcpu;
|
||||
in {
|
||||
options.ptw.hardware.amdcpu = {
|
||||
enable = lib.mkEnableOption "Enable support for AMD CPUs";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
};
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{
|
||||
config, lib, pkgs, ...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.ptw.hardware.amdgpu;
|
||||
in {
|
||||
options.ptw.hardware.amdgpu = {
|
||||
enable = lib.mkEnableOption "Enable support for AMDGPU GPUs";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
unstable.mesa
|
||||
unstable.firmwareLinuxNonfree
|
||||
];
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
};
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.ptw.hardware.intel;
|
||||
in {
|
||||
options.ptw.hardware.intel = {
|
||||
enable = lib.mkEnableOption "Enable support for Intel CPUs";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware = {
|
||||
cpu.intel.updateMicrocode = true;
|
||||
# NOTE: Assuming each Intel CPU has integrated graphics
|
||||
opengl.extraPackages = with pkgs; [ vaapiIntel intel-media-driver ];
|
||||
};
|
||||
# TODO: Remove?
|
||||
services.xserver.videoDrivers = [ "modesetting" "fbdev" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user