summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-01 21:50:57 +0100
committeradikro <adikro@disroot.org>2025-12-01 21:50:57 +0100
commitca4e63650bfe066313ec4c5407740dbe1664e3f0 (patch)
tree2413acad38460a8185159d868259f1e9a40263e6 /modules
parent2ea2c4ee8c36927036934d9d563998adf48b4bcc (diff)
added ollama
Diffstat (limited to 'modules')
-rw-r--r--modules/audio.nix6
-rw-r--r--modules/ollama.nix20
2 files changed, 20 insertions, 6 deletions
diff --git a/modules/audio.nix b/modules/audio.nix
index e7579c1..05bc8a0 100644
--- a/modules/audio.nix
+++ b/modules/audio.nix
@@ -1,8 +1,6 @@
{ ... }:
-
{
services = {
-
pipewire = {
enable = true;
audio.enable = true;
@@ -12,10 +10,6 @@
jack.enable = true;
wireplumber.enable = true;
};
-
-# easyeffects = {
-# enable = true;
-# };
playerctld = {
enable = true;
};
diff --git a/modules/ollama.nix b/modules/ollama.nix
new file mode 100644
index 0000000..326e8c5
--- /dev/null
+++ b/modules/ollama.nix
@@ -0,0 +1,20 @@
+{ ... }:
+{
+ fileSystems."/var/lib/ollama/models" = {
+ device = "/home/ollama";
+ fsType = "none";
+ options = [ "bind" ];
+ };
+
+ services.ollama = {
+ enable = true;
+ acceleration = "rocm";
+ # loadModels = [
+ # "deepseek-r1:14b"
+ # ];
+ # syncModels = true;
+ user = "ollama";
+ models = "/var/lib/ollama/models";
+ };
+ services.nextjs-ollama-llm-ui.enable = true;
+}