Merge cal and git

This commit is contained in:
muon 2025-01-27 20:27:51 +00:00
commit 4e24f37ab8
7 changed files with 36 additions and 5 deletions

View file

@ -2,9 +2,8 @@
options.mods.sound.enable = lib.mkEnableOption "enables sound";
config = lib.mkIf config.mods.sound.enable {
services.pipewire = {
enable = true;
pulse.enable = true;
};
services.pipewire.enable = false;
services.pulseaudio.enable = true;
services.pulseaudio.support32Bit = true;
};
}

View file

@ -0,0 +1,28 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.chat;
port = config.mods.server.nginx.ports.chat;
in with lib; {
options.mods.server = {
chat = {
enable = mkEnableOption {
default = false;
description = "enables ollama server";
};
};
};
config = mkIf cfg.enable {
services.ollama = {
enable = true;
loadModels = [ "deepseek-r1:7b" ];
};
services.open-webui = {
enable = true;
inherit port;
};
};
}

View file

@ -18,5 +18,6 @@
./vault.nix
./git.nix
./cal.nix
./chat.nix
];
}