add portable ssd, fix laptop eval
This commit is contained in:
12
modules/hardware/amd-gpu.nix
Normal file
12
modules/hardware/amd-gpu.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ lib, config, pkgs, inputs, pkgsVersion, ... }:
|
||||
let cfg = config.custom.hardware.amd-gpu;
|
||||
in {
|
||||
options.custom.hardware.amd-gpu = {
|
||||
enable = lib.mkEnableOption "Enables amd gpus";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
};
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{ pkgs, config, ... }: {
|
||||
imports = [
|
||||
./amd-gpu.nix
|
||||
./android.nix
|
||||
./firmware.nix
|
||||
./nvidia.nix
|
||||
|
||||
Reference in New Issue
Block a user