DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

ref: faba6c04a3e1e4240bdf705e2c2eb9fe8cddd3c5 nix-arta/modules/nixos/amdgpu.nix -rw-r--r-- 378 bytes
faba6c04Jonni Liljamo feat: move importBoth to lib a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  flake.modules.nixos.amdgpu = {pkgs, ...}: {
    hardware = {
      enableRedistributableFirmware = true;
      graphics = {
        enable = true;
        enable32Bit = true;
      };
    };

    boot.initrd.kernelModules = ["amdgpu"];

    services.xserver.videoDrivers = ["amdgpu"];

    environment.systemPackages = with pkgs; [
      rocmPackages.rocm-smi
    ];
  };
}