Newest server.
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
PLATFORMTHEME = "kde";
|
PLATFORMTHEME = "kde";
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
htop
|
||||||
];
|
];
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@
|
|||||||
./configuration-common.nix
|
./configuration-common.nix
|
||||||
];
|
];
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# Suggestions from llama to increase cpu bound efficency for ai models.
|
||||||
|
# Set CPU frequency to 3.5 GHz
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
@@ -26,6 +30,7 @@
|
|||||||
initrd.kernelModules = [ ];
|
initrd.kernelModules = [ ];
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
|
kernelParams = [ "hz=35000000" ];
|
||||||
supportedFilesystems = [ "vfat" "btrfs" "cifs" ];
|
supportedFilesystems = [ "vfat" "btrfs" "cifs" ];
|
||||||
extraModulePackages = [ ];
|
extraModulePackages = [ ];
|
||||||
extraModprobeConfig = ''
|
extraModprobeConfig = ''
|
||||||
@@ -93,6 +98,14 @@
|
|||||||
pulseaudio.enable = false;
|
pulseaudio.enable = false;
|
||||||
printing.enable = false;
|
printing.enable = false;
|
||||||
openssh.enable = true;
|
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;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -199,6 +199,7 @@
|
|||||||
if-shell "[[ $(hostname) = 'xps13' ]]" {
|
if-shell "[[ $(hostname) = 'xps13' ]]" {
|
||||||
set-option -as terminal-features 'foot:RGB'
|
set-option -as terminal-features 'foot:RGB'
|
||||||
}
|
}
|
||||||
|
|
||||||
if-shell "[[ $(hostname) = 'Titan' ]]" {
|
if-shell "[[ $(hostname) = 'Titan' ]]" {
|
||||||
# set-option -as terminal-features 'xterm-256color:RGB'
|
# set-option -as terminal-features 'xterm-256color:RGB'
|
||||||
# set -g default-terminal "tmux-256color"
|
# set -g default-terminal "tmux-256color"
|
||||||
@@ -212,6 +213,21 @@
|
|||||||
# If you previously set terminal-overrides/Tc, drop them to avoid conflicts
|
# If you previously set terminal-overrides/Tc, drop them to avoid conflicts
|
||||||
# set -gu terminal-overrides # uncomment if you had overrides before
|
# 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-option -g update-environment "DISPLAY XAUTHORITY WAYLAND_DISPLAY XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE"
|
||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
set -g escape-time 3
|
set -g escape-time 3
|
||||||
|
|||||||
Reference in New Issue
Block a user