Newest server.

This commit is contained in:
2025-09-02 01:56:07 -04:00
parent 595e2a287d
commit 4342e97990
3 changed files with 30 additions and 0 deletions

View File

@@ -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;

View File

@@ -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