Skip to content

Commit

Permalink
feat: add ws
Browse files Browse the repository at this point in the history
  • Loading branch information
FredeHoey committed Oct 28, 2024
1 parent b0e83a7 commit 21abb1f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions systems/ws.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ pkgs, config, lib, modulesPath, ... }: {
imports = [
../common/desktop.nix
../modules/default-system-layout.nix
(modulesPath + "/installer/scan/not-detected.nix")
];

boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "amdgpu" "kvm-amd" "wl" "b43" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];

environment.variables = { ROC_ENABLE_PRE_VEGA = "1"; };
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocmPackages.clr.icd ];
networking = {
interfaces.enp39s0.wakeOnLan.enable = true;
hostName = "ws";
useDHCP = lib.mkDefault true;
};
services.ollama = {
enable = true;
host = "0.0.0.0";
acceleration = "rocm";
# Run the following command to get a non-comma separated list of
# nix run nixpkgs#rocmPackages.rocminfo | grep gfx | cut -d "x" -f 2 | head -n 1
rocmOverrideGfx = "11.0.0";
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}

0 comments on commit 21abb1f

Please sign in to comment.