add portable ssd, fix laptop eval

This commit is contained in:
Kopatz
2024-12-09 14:01:24 +01:00
parent c04be0ef1e
commit deda06423e
12 changed files with 115 additions and 33 deletions

View 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" ];
};
}