ollama: init
This commit is contained in:
parent
bf49665871
commit
377bd48ee5
4 changed files with 25 additions and 0 deletions
|
|
@ -25,6 +25,8 @@
|
||||||
browser = "firefox";
|
browser = "firefox";
|
||||||
terminal = "ghostty";
|
terminal = "ghostty";
|
||||||
};
|
};
|
||||||
|
# FIXME
|
||||||
|
programs.ollama.enable = false;
|
||||||
};
|
};
|
||||||
console = {
|
console = {
|
||||||
profile = "standard";
|
profile = "standard";
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ in {
|
||||||
firefox.enable = mkEnableOption "";
|
firefox.enable = mkEnableOption "";
|
||||||
foot.enable = mkEnableOption "";
|
foot.enable = mkEnableOption "";
|
||||||
ghostty.enable = mkEnableOption "";
|
ghostty.enable = mkEnableOption "";
|
||||||
|
ollama.enable = mkEnableOption "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@
|
||||||
./dbus.nix
|
./dbus.nix
|
||||||
./gnome-services.nix
|
./gnome-services.nix
|
||||||
./geoclue.nix
|
./geoclue.nix
|
||||||
|
./ollama.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
21
modules/nixos/workstation/services/ollama.nix
Normal file
21
modules/nixos/workstation/services/ollama.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
cfg = config.ooknet.workstation.programs.ollama;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# FIXME:
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/376930
|
||||||
|
services.ollama = {
|
||||||
|
enable = true;
|
||||||
|
acceleration = "rocm";
|
||||||
|
rocmOverrideGfx = "10.1.0";
|
||||||
|
environmentVariables = {
|
||||||
|
HCC_AMDGPU_TARGET = "gfx1010";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue