feat(nixos): add terraria and gamemode services and update configurations
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
imports = [
|
||||
./minecraft.nix
|
||||
./satisfactory.nix
|
||||
./terraria.nix
|
||||
];
|
||||
}
|
||||
|
||||
7
nixos/mirai/services/games/terraria.nix
Normal file
7
nixos/mirai/services/games/terraria.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
services.terraria = {
|
||||
enable = true;
|
||||
# port = 7777;
|
||||
autoCreatedWorldSize = "large";
|
||||
};
|
||||
}
|
||||
@@ -8,5 +8,6 @@
|
||||
./obs-studio.nix
|
||||
./gnome-disks.nix
|
||||
./nix-ld.nix
|
||||
./gamemode.nix
|
||||
];
|
||||
}
|
||||
|
||||
5
nixos/ryu/programs/gamemode.nix
Normal file
5
nixos/ryu/programs/gamemode.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{...}: {
|
||||
programs.gamemode = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
@@ -4,10 +4,17 @@
|
||||
gamescopeSession.enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
pkgs.gamescope
|
||||
pkgs.mangohud
|
||||
];
|
||||
};
|
||||
programs.gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
environment.systemPackages = [
|
||||
pkgs.protonup-qt
|
||||
];
|
||||
|
||||
@@ -87,6 +87,7 @@
|
||||
"nvidia_modeset"
|
||||
"nvidia_drm"
|
||||
"dm-snapshot"
|
||||
"dm-mirror"
|
||||
];
|
||||
boot.kernelParams = [
|
||||
"intel_iommu=on"
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# ./sunshine.nix
|
||||
# ./zerotier.nix
|
||||
# ./dnscrypt.nix
|
||||
./ollama.nix
|
||||
# ./llama.nix
|
||||
# ./ollama.nix
|
||||
./llama.nix
|
||||
./tailscale.nix
|
||||
./samba.nix
|
||||
./mullvad.nix
|
||||
|
||||
@@ -1,20 +1,28 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
llama-cpp = {
|
||||
enable = true;
|
||||
port = 11435;
|
||||
model = pkgs.fetchurl {
|
||||
url = "https://huggingface.co/lmstudio-community/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-MXFP4.gguf";
|
||||
sha256 = "65d06d31a3977d553cb3af137b5c26b5f1e9297a6aaa29ae7caa98788cde53ab";
|
||||
};
|
||||
# package = pkgs.ik_llama;
|
||||
};
|
||||
ollama = {
|
||||
enable = true;
|
||||
port = 11345;
|
||||
model = "/nix/store/ch6z9di3l0k54ad29pzv8k3zv47q30d1-Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf";
|
||||
# model = pkgs.fetchurl {
|
||||
# # url = "https://huggingface.co/lmstudio-community/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-MXFP4.gguf";
|
||||
# # sha256 = "65d06d31a3977d553cb3af137b5c26b5f1e9297a6aaa29ae7caa98788cde53ab";
|
||||
# url = "https://huggingface.co/lmstudio-community/Qwen3-Coder-30B-A3B-Instruct-GGUF/resolve/main/Qwen3-Coder-30B-A3B-Instruct-Q4_K_M.gguf";
|
||||
# sha256 = "79ad15a5ee3caddc3f4ff0db33a14454a5a3eb503d7fa1c1e35feafc579de486";
|
||||
# };
|
||||
extraFlags = [
|
||||
"-c"
|
||||
"98304"
|
||||
"--jinja"
|
||||
# "--chat-template-file"
|
||||
# "/nix/store/4zk1p50hrzghp3jzzysz96pa64i2kmjl-promp.hbs"
|
||||
];
|
||||
# package = inputs.llama-cpp.packages.${pkgs.system}.cuda;
|
||||
};
|
||||
caddy = {
|
||||
virtualHosts."llama.ryu.darksailor.dev".extraConfig = ''
|
||||
@@ -23,7 +31,7 @@
|
||||
'';
|
||||
};
|
||||
};
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# vllm
|
||||
# ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
llama-cpp
|
||||
];
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
}: {
|
||||
services = {
|
||||
ollama = {
|
||||
enable = true;
|
||||
enable = false;
|
||||
host = "0.0.0.0";
|
||||
# loadModels = ["deepseek-r1:7b" "deepseek-r1:14b" "RobinBially/nomic-embed-text-8k" "qwen3:8b" "qwen3:14b"];
|
||||
# loadModels = ["deepseek-r1:7b" "deepseek-r1:14b" "RobinBially/nomic-embed-text-8k" "qwen3:8b" "qwen3:14b"];
|
||||
|
||||
Reference in New Issue
Block a user