mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-17 03:31:59 -05:00
Init:start-nix
This commit is contained in:
14
modules/drivers/amd-gpu.nix
Normal file
14
modules/drivers/amd-gpu.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
hostname,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (import ../../hosts/${hostname}/env.nix) GPU-AMD;
|
||||
in
|
||||
with lib; {
|
||||
config = mkIf GPU-AMD {
|
||||
systemd.tmpfiles.rules = ["L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"];
|
||||
services.xserver.videoDrivers = ["amdgpu"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user