mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-25 08:03:09 +01:00
21 lines
361 B
Nix
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" ];
|
|
};
|
|
}
|