mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Merge cal and git
This commit is contained in:
commit
4e24f37ab8
7 changed files with 36 additions and 5 deletions
|
|
@ -28,7 +28,7 @@ in with lib; {
|
|||
dolphin
|
||||
|
||||
# documents
|
||||
# texliveFull
|
||||
texliveFull
|
||||
# texstudio
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
28
modules/nixos/server/chat.nix
Normal file
28
modules/nixos/server/chat.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -18,5 +18,6 @@
|
|||
./vault.nix
|
||||
./git.nix
|
||||
./cal.nix
|
||||
./chat.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue