mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-04-20 03:29:01 +00:00
update system
This commit is contained in:
@@ -110,7 +110,7 @@ in
|
||||
ghex
|
||||
gnome-disk-utility
|
||||
# fixes
|
||||
xorg.xrandr
|
||||
xrandr
|
||||
];
|
||||
|
||||
gtk = {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
programs.git = {
|
||||
enable = true;
|
||||
signing = {
|
||||
format = "openpgp";
|
||||
key = "6C9E EFC5 1AE0 0131 78DE B9C8 68FF FB1E C187 88CA";
|
||||
signByDefault = true;
|
||||
};
|
||||
|
||||
@@ -299,8 +299,11 @@ in
|
||||
gtk = {
|
||||
gtk3.extraCss = # css
|
||||
"@import './theme.css';";
|
||||
gtk4.extraCss = # css
|
||||
"@import './theme.css';";
|
||||
gtk4 = {
|
||||
theme.name = "Adwaita";
|
||||
extraCss = # css
|
||||
"@import './theme.css';";
|
||||
};
|
||||
theme = {
|
||||
name = "Adwaita";
|
||||
};
|
||||
|
||||
@@ -25,9 +25,10 @@
|
||||
|
||||
./locales/theaninova.nix
|
||||
|
||||
./usecases/gaming.nix
|
||||
./usecases/3d-printing.nix
|
||||
./usecases/development.nix
|
||||
./usecases/gaming.nix
|
||||
./usecases/localai.nix
|
||||
./usecases/windows-vm.nix
|
||||
|
||||
./services/airprint.nix
|
||||
|
||||
36
modules/nixos/usecases/localai.nix
Normal file
36
modules/nixos/usecases/localai.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.usecases.localai;
|
||||
in
|
||||
{
|
||||
options.usecases.localai = {
|
||||
enable = mkEnableOption "Enable local LLM services";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
networking.hosts = {
|
||||
"127.0.0.1:57461" = [ "ai.local" ];
|
||||
};
|
||||
|
||||
services = {
|
||||
ollama.enable = true;
|
||||
open-webui = {
|
||||
enable = true;
|
||||
port = 57461;
|
||||
environment = {
|
||||
ANONYMIZED_TELEMETRY = "False";
|
||||
DO_NOT_TRACK = "True";
|
||||
SCARF_NO_ANALYTICS = "True";
|
||||
WEBUI_AUTH = "False";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user