zaneyos-modified/modules/amd-drivers.nix
2024-08-20 12:58:53 -04:00

21 lines
361 B
Nix

{
lib,
pkgs,
config,
...
}:
with lib;
let
cfg = config.drivers.amdgpu;
in
{
options.drivers.amdgpu = {
enable = mkEnableOption "Enable AMD Drivers";
};
config = mkIf cfg.enable {
systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ];
services.xserver.videoDrivers = [ "amdgpu" ];
};
}