updated nvim config, added local_ai

This commit is contained in:
2026-08-16 10:16:13 -07:00
parent 35cf83cb70
commit da513216a3
17 changed files with 734 additions and 321 deletions

View File

@@ -8,5 +8,18 @@
ghidra
antigravity-cli
pi-coding-agent
# Clang & LLVM Toolchain
llvmPackages_latest.clang
llvmPackages_latest.lld
llvmPackages_latest.lldb
llvmPackages_latest.llvm
llvmPackages_latest.clang-tools
llvmPackages_latest.libcxx
# Nix Tools
nil
nixfmt
statix
];
}

38
modules/apps/local_ai.nix Normal file
View File

@@ -0,0 +1,38 @@
{ pkgs, inputs, ... }:
{
imports = [
inputs.comfy-ui.nixosModules.default
];
services = {
comfyui = {
enable = true;
gpuSupport = "cuda";
enableManager = true;
port = 8188;
listenAddress = "0.0.0.0";
dataDir = "/var/lib/comfyui";
user = "comfyui";
group = "comfyui";
createUser = true;
};
ollama = {
enable = true;
package = pkgs.ollama-cuda;
host = "0.0.0.0";
port = 11434;
user = "ollama";
group = "ollama";
home = "/var/lib/ollama";
};
open-webui.enable = true;
};
environment.systemPackages = with pkgs; [
comfy-ui-cuda
ollama-cuda
];
}

View File

@@ -1,18 +1,23 @@
{ ... }:
{
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
nix = {
settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
substituters = [ "https://cache.nixos-cuda.org" ];
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
};
nixpkgs.config.allowUnfree = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
};
nixpkgs.config.allowUnfree = true;
}

View File

@@ -1,34 +1,38 @@
{ pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
networking.firewall.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
networking.networkmanager.enable = true;
networking.firewall.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
environment.systemPackages = with pkgs; [
git
curl
wget
btop
gparted
pciutils
usbutils
egl-wayland
pulseaudio # Provides `pactl` for audio volume control bindings
];
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
system.stateVersion = "26.05";
# Enable running generic unpatched dynamic binaries (Mason, Tree-sitter CLI, language servers, etc.)
programs.nix-ld.enable = true;
environment.systemPackages = with pkgs; [
git
curl
wget
aria2
btop
gparted
pciutils
usbutils
egl-wayland
pulseaudio # Provides `pactl` for audio volume control bindings
];
system.stateVersion = "26.05";
}