This commit is contained in:
Grigory Shipunov 2023-01-14 12:57:53 +01:00
parent 9ff003a4c1
commit eabc64290a
Signed by: 0xa
GPG key ID: 91FA5E5BF9AA901C
6 changed files with 40 additions and 18 deletions

16
hosts/toaster/amd.nix Normal file
View file

@ -0,0 +1,16 @@
{ pkgs, config, ... }: {
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl = {
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
];
extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
}

View file

@ -1,5 +1,6 @@
{ ... }: {
{ pkgs, ... }: {
imports = [
./amd.nix
./hardware-configuration.nix
./network-vpns.nix
./network.nix
@ -8,6 +9,9 @@
];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
yt-dlp
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;