From 4342e97990a676b406553b8cc3f01d0652d1ef3e Mon Sep 17 00:00:00 2001 From: th3r00t Date: Tue, 2 Sep 2025 01:56:07 -0400 Subject: [PATCH] Newest server. --- home-server.nix | 1 + modules/configuration-Athena.nix | 13 +++++++++++++ modules/home-manager-common.nix | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) diff --git a/home-server.nix b/home-server.nix index 78f4f95..4abbcf9 100644 --- a/home-server.nix +++ b/home-server.nix @@ -33,6 +33,7 @@ PLATFORMTHEME = "kde"; }; home.packages = with pkgs; [ + htop ]; home.stateVersion = "25.05"; } diff --git a/modules/configuration-Athena.nix b/modules/configuration-Athena.nix index 0d7987d..4a81568 100644 --- a/modules/configuration-Athena.nix +++ b/modules/configuration-Athena.nix @@ -11,6 +11,10 @@ ./configuration-common.nix ]; nixpkgs.config.allowUnfree = true; + + # Suggestions from llama to increase cpu bound efficency for ai models. + # Set CPU frequency to 3.5 GHz + nix = { settings = { experimental-features = [ "nix-command" "flakes" ]; @@ -26,6 +30,7 @@ initrd.kernelModules = [ ]; loader.systemd-boot.enable = true; loader.efi.canTouchEfiVariables = true; + kernelParams = [ "hz=35000000" ]; supportedFilesystems = [ "vfat" "btrfs" "cifs" ]; extraModulePackages = [ ]; extraModprobeConfig = '' @@ -93,6 +98,14 @@ pulseaudio.enable = false; printing.enable = false; openssh.enable = true; + ollama = { + enable = true; + loadModels = [ + "steamdj/llama3.1-cpu-only" + # "qwen2.5:7b-instruct-q4_K_M" + ]; + acceleration = false; + }; }; security.rtkit.enable = true; diff --git a/modules/home-manager-common.nix b/modules/home-manager-common.nix index 73c6c8a..84334b8 100644 --- a/modules/home-manager-common.nix +++ b/modules/home-manager-common.nix @@ -199,6 +199,7 @@ if-shell "[[ $(hostname) = 'xps13' ]]" { set-option -as terminal-features 'foot:RGB' } + if-shell "[[ $(hostname) = 'Titan' ]]" { # set-option -as terminal-features 'xterm-256color:RGB' # set -g default-terminal "tmux-256color" @@ -212,6 +213,21 @@ # If you previously set terminal-overrides/Tc, drop them to avoid conflicts # set -gu terminal-overrides # uncomment if you had overrides before } + + if-shell "[[ $(hostname) = 'Athena' ]]" { + # set-option -as terminal-features 'xterm-256color:RGB' + # set -g default-terminal "tmux-256color" + # set -g terminal-overrides ",xterm-256color:RGB" + set -g default-terminal "tmux-256color" + + # Enable 24-bit color for ANY parent terminal tmux detects + # (covers foot, kitty, wezterm, alacritty, xterm-256color, etc.) + set-option -as terminal-features '*:RGB' + + # If you previously set terminal-overrides/Tc, drop them to avoid conflicts + # set -gu terminal-overrides # uncomment if you had overrides before + } + set-option -g update-environment "DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE" set -g focus-events on set -g escape-time 3