Added AI VM to dotfiles config

This commit is contained in:
Random936
2025-01-29 15:08:56 -08:00
parent 9355d1f23c
commit 608cc71fe5
4 changed files with 109 additions and 9 deletions

47
config/ai.nix Normal file
View File

@@ -0,0 +1,47 @@
{ config, pkgs, inputs, lib, ... }: {
imports = [
../hardware/ai.nix
./headless.nix
(import ./networking.nix {
hostname = "mindforge";
ip_address = "192.168.100.45";
open_ports = [ ];
inherit lib;
})
];
users.users.mindforge = import ./user.nix;
# Setup drivers for NVIDIA GPU
services.xserver = {
enable = false;
videoDrivers = [ "nvidia" ];
};
hardware = {
nvidia = {
open = false;
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
nvidiaSettings = true;
};
graphics = {
enable = true;
enable32Bit = true;
};
};
services.open-webui = {
enable = true;
host = "0.0.0.0";
openFirewall = true;
};
services.ollama = {
enable = true;
acceleration = "cuda";
};
}