llama.cpp fixes

This commit is contained in:
2026-07-27 15:17:22 -07:00
parent e403bf7715
commit 31905152da
3 changed files with 37 additions and 29 deletions
+14 -10
View File
@@ -1,35 +1,39 @@
{ hostname, lib, ... }: {
{
hostname,
lib,
...
}: {
programs.ghostty = {
enable = true;
# Use mkForce to safely override the default package on eva-02
package = lib.mkIf (hostname == "eva-02") (lib.mkForce null);
enableZshIntegration = true;
settings = {
# Use explicit theme instead of relying on system theme detection
theme = "Adwaita Dark";
gtk-single-instance = true;
font-family = "JetBrainsMono Nerd Font";
font-family-italic = "Maple Mono";
font-family-bold-italic = "Maple Mono";
font-size = 12;
bold-is-bright = true;
window-decoration = false;
background-opacity = 0.8;
# Note: 'background-blur-radius' is mostly a macOS-specific setting.
# If you are on Linux, you likely want 'background-blur = true' instead.
# background-blur-radius = 120;
window-save-state = "always";
mouse-hide-while-typing = true;
cursor-invert-fg-bg = true;
# The global: prefix is perfectly valid for Ghostty's command palette and quick terminal
keybind = [
"global:cmd+grave_accent=toggle_quick_terminal"
+10 -10
View File
@@ -209,16 +209,16 @@
# };
# Enable llama-cpp server
# services.llama-cpp = {
# enable = true;
# package = pkgs-unstable.llama-cpp.override {cudaSupport = true;};
# model = "/home/rogueking/models";
# host = "0.0.0.0";
# port = 8080;
# # extraFlags = [
# # "n-gpu-layers 99"
# # ];
# };
services.llama-cpp = {
enable = true;
package = pkgs-unstable.llama-cpp.override {cudaSupport = true;};
model = null;
host = "0.0.0.0";
port = 8080;
extraFlags = [
"--models-preset" "/etc/models.ini"
];
};
# Define a user account. Don't forget to set a password with passwd.
programs.zsh.enable = true;
+13 -9
View File
@@ -1,17 +1,21 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.initrd.availableKernelModules = ["uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}