summaryrefslogtreecommitdiff
path: root/hosts/toaster
diff options
context:
space:
mode:
authorGrigory Shipunov2023-01-14 12:57:53 +0100
committerGrigory Shipunov2023-01-14 12:57:53 +0100
commiteabc64290a948aeca298dd3d6d75373e3e914cbd (patch)
tree34596191b9386e7d4cc0c2b93c2404885706f0be /hosts/toaster
parent9ff003a4c1303b4d5dec4239f6f5743dc54f3181 (diff)
update
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;