summaryrefslogtreecommitdiff
path: root/hosts/toaster
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/toaster')
-rw-r--r--hosts/toaster/amd.nix16
-rw-r--r--hosts/toaster/default.nix6
2 files changed, 21 insertions, 1 deletions
diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix
new file mode 100644
index 0000000..07aa493
--- /dev/null
+++ b/hosts/toaster/amd.nix
@@ -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
+ ];
+ };
+}
diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix
index 1204de2..ae90231 100644
--- a/hosts/toaster/default.nix
+++ b/hosts/toaster/default.nix
@@ -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;