Skip to content

Commit

Permalink
Add Ollama, OBS Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
hzmmohamed committed Dec 11, 2024
1 parent 495e048 commit e41f28f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
4 changes: 3 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,6 @@ fwcd.kotlin --> Install and configure paths for JDK and stuff or disable those f
- [x] Add udiskie again


- Add clamav
- Add clamav
- Quick workflow to get the transcription of a video into an Obsidian note, and start editing.
- Run an LLM locally and fine tune it on a TfC report.
22 changes: 22 additions & 0 deletions modules/nixos/suites/ai/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.caramelmint;
let cfg = config.caramelmint.suites.ai;
in {
options.caramelmint.suites.ai = with types; {
enable =
mkBoolOpt false "Whether or not to enable configuration for AI tools";
};

config = mkIf cfg.enable {
services.ollama = {
enable = true;
acceleration = "cuda";
};
services.nextjs-ollama-llm-ui = {
enable = true;
port = 3030;
};
environment.systemPackages = with pkgs; [ openai-whisper-cpp ];
};
}
3 changes: 2 additions & 1 deletion modules/nixos/suites/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ in {
};

config = mkIf cfg.enable {
services.automatic-timezoned = enabled;
# services.automatic-timezoned = enabled;
caramelmint = {
nix = enabled;

Expand Down Expand Up @@ -44,6 +44,7 @@ in {
system = {
fonts = enabled;
locale = enabled;
time = enabled;
xkb = enabled;
};
};
Expand Down
3 changes: 3 additions & 0 deletions modules/nixos/suites/office/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ in {
unstable.anytype
spotify

obs-studio
obs-studio-plugins.obs-backgroundremoval

fontfor
fontforge
font-manager
Expand Down
1 change: 1 addition & 0 deletions systems/x86_64-linux/nixos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ with lib.caramelmint; {
games = enabled;
music-production = enabled;
maker-tools = enabled;
ai = enabled;
};

hardware = { nvidia = enabled; };
Expand Down

0 comments on commit e41f28f

Please sign in to comment.