current
This commit is contained in:
parent
bd49791e06
commit
bfbd2832d6
5 changed files with 189 additions and 118 deletions
|
|
@ -20,6 +20,6 @@
|
|||
./zsh.nix
|
||||
|
||||
|
||||
./ollama.nix
|
||||
# ./ollama.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
{...}: {
|
||||
{ pkgs, ...}: {
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
rocmPackages.rocm-runtime
|
||||
rocm-opencl-runtime
|
||||
rocmPackages.rocm-comgr
|
||||
rocmPackages.rocm-smi
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,15 @@
|
|||
{ options, lib, ...}: {
|
||||
options = lib.mkIf options.ollama.enable {
|
||||
services.ollama = {
|
||||
enable = true;
|
||||
acceleration = "rocm";
|
||||
environment.systemPackages = [ pkgs.ollama-rocm ];
|
||||
|
||||
# services.ollama = {
|
||||
# enable = true;
|
||||
# acceleration = "rocm";
|
||||
|
||||
# environmentVariables = {
|
||||
# HCC_AMDGPU_TARGET = "gfx1100"; # used to be necessary, but doesn't seem to anymore
|
||||
# };
|
||||
# rocmOverrideGfx = "11.0.0";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,10 @@
|
|||
config.common.default = "hyprland";
|
||||
};
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
hardware.graphics.enable = true;
|
||||
# hardware.opengl.extraPackages = [
|
||||
# rocm-opencl-icd
|
||||
# ];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue