Ryan Lahfa
ebed6462f6
I will add ollama on it later on and passthrough the GPU in there. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
36 lines
733 B
Nix
36 lines
733 B
Nix
{ lib, ... }:
|
|
|
|
lib.extra.mkConfig {
|
|
enabledModules = [
|
|
# INFO: This list needs to stay sorted alphabetically
|
|
];
|
|
|
|
enabledServices = [
|
|
# INFO: This list needs to stay sorted alphabetically
|
|
"microvm-router01"
|
|
"nvidia-tesla-k80"
|
|
"proxmox"
|
|
# Machine learning API machine
|
|
"microvm-ml01"
|
|
];
|
|
|
|
extraConfig = {
|
|
microvm.host.enable = true;
|
|
dgn-hardware = {
|
|
useZfs = true;
|
|
zfsPools = [
|
|
"dpool"
|
|
"ppool0"
|
|
];
|
|
};
|
|
|
|
services.netbird.enable = true;
|
|
|
|
# We are going to use CUDA here.
|
|
nixpkgs.config.cudaSupport = true;
|
|
|
|
users.users.root.hashedPassword = "$y$j9T$eNZQgDN.J5y7KTG2hXgat1$J1i5tjx5dnSZu.C9B7swXi5zMFIkUnmRrnmyLHFAt8/";
|
|
};
|
|
|
|
root = ./.;
|
|
}
|