Added AI VM to dotfiles config
This commit is contained in:
47
config/ai.nix
Normal file
47
config/ai.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user