added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
23
nyx/homes/notashelf/programs/graphical/gaming/chess.nix
Normal file
23
nyx/homes/notashelf/programs/graphical/gaming/chess.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
env = modules.usrEnv;
|
||||
prg = env.programs;
|
||||
in {
|
||||
config = mkIf prg.gaming.chess.enable {
|
||||
home.packages = with pkgs; [
|
||||
knights
|
||||
fairymax
|
||||
gnome.gnome-chess
|
||||
stockfish
|
||||
fishnet
|
||||
uchess
|
||||
];
|
||||
};
|
||||
}
|
34
nyx/homes/notashelf/programs/graphical/gaming/default.nix
Normal file
34
nyx/homes/notashelf/programs/graphical/gaming/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
env = modules.usrEnv;
|
||||
prg = env.programs;
|
||||
in {
|
||||
imports = [
|
||||
./minecraft.nix
|
||||
./mangohud.nix
|
||||
./chess.nix
|
||||
];
|
||||
|
||||
config = mkIf prg.gaming.enable {
|
||||
home.packages = with pkgs; [
|
||||
legendary-gl # epic games launcher
|
||||
mangohud # fps counter & vulkan overlay
|
||||
lutris # alternative game launcher
|
||||
|
||||
# emulators
|
||||
# dolphin-emu # general console
|
||||
|
||||
# runtime
|
||||
dotnet-runtime_6 # for running terraria manually, from binary
|
||||
mono # general dotnet apps
|
||||
winetricks # wine helper utility
|
||||
];
|
||||
};
|
||||
}
|
38
nyx/homes/notashelf/programs/graphical/gaming/mangohud.nix
Normal file
38
nyx/homes/notashelf/programs/graphical/gaming/mangohud.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
osConfig,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
env = modules.usrEnv;
|
||||
prg = env.programs;
|
||||
in {
|
||||
config = mkIf prg.gaming.mangohud.enable {
|
||||
programs.mangohud = {
|
||||
enable = true;
|
||||
settings = {
|
||||
fps_limit = "60,0";
|
||||
vsync = 1;
|
||||
cpu_stats = true;
|
||||
cpu_temp = true;
|
||||
gpu_stats = true;
|
||||
gpu_temp = true;
|
||||
vulkan_driver = false;
|
||||
fps = true;
|
||||
frametime = true;
|
||||
frame_timing = true;
|
||||
enableSessionWide = true;
|
||||
font_size = 24;
|
||||
position = "top-left";
|
||||
engine_version = true;
|
||||
wine = true;
|
||||
no_display = true;
|
||||
background_alpha = "0.5";
|
||||
toggle_hud = "Shift_R+F12";
|
||||
toggle_fps_limit = "Shift_R+F1";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
76
nyx/homes/notashelf/programs/graphical/gaming/minecraft.nix
Normal file
76
nyx/homes/notashelf/programs/graphical/gaming/minecraft.nix
Normal file
|
@ -0,0 +1,76 @@
|
|||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf;
|
||||
inherit (osConfig) modules;
|
||||
|
||||
env = modules.usrEnv;
|
||||
prg = env.programs;
|
||||
|
||||
catppuccin-mocha = pkgs.fetchzip {
|
||||
url = "https://raw.githubusercontent.com/catppuccin/prismlauncher/main/themes/Mocha/Catppuccin-Mocha.zip";
|
||||
sha256 = "sha256-8uRqCoe9iSIwNnK13d6S4XSX945g88mVyoY+LZSPBtQ=";
|
||||
};
|
||||
in {
|
||||
config = mkIf prg.gaming.minecraft.enable {
|
||||
home = {
|
||||
# copy the catppuccin theme to the themes directory of PrismLauncher
|
||||
file.".local/share/PrismLauncher/themes/mocha" = {
|
||||
source = catppuccin-mocha;
|
||||
recursive = true;
|
||||
};
|
||||
|
||||
packages = let
|
||||
# java packages that are needed by various versions or modpacks
|
||||
# different distributions of java may yield different results in performance
|
||||
# and thus I recommend testing them one by one to remove those that you do not
|
||||
# need in your configuration
|
||||
jdks = with pkgs; [
|
||||
# Java 8
|
||||
temurin-jre-bin-8
|
||||
zulu8
|
||||
|
||||
# Java 11
|
||||
temurin-jre-bin-11
|
||||
|
||||
# Java 17
|
||||
temurin-jre-bin-17
|
||||
|
||||
# Latest
|
||||
temurin-jre-bin
|
||||
zulu
|
||||
graalvm-ce
|
||||
];
|
||||
|
||||
additionalPrograms = with pkgs; [
|
||||
gamemode
|
||||
mangohud
|
||||
jprofiler
|
||||
];
|
||||
|
||||
glfw =
|
||||
if env.isWayland
|
||||
then pkgs.glfw-wayland-minecraft
|
||||
else pkgs.glfw;
|
||||
in [
|
||||
# the successor to polyMC, which is now mostly abandoned
|
||||
(pkgs.prismlauncher.override {
|
||||
# get java versions required by various minecraft versions
|
||||
# "write once run everywhere" my ass
|
||||
inherit jdks;
|
||||
|
||||
# wrap Prismlauncher with programs in may need for workarounds
|
||||
# or client features
|
||||
inherit additionalPrograms;
|
||||
|
||||
# wrap Prismlauncher with the nixpkgs glfw, or optionally the wayland patched
|
||||
# version of glfw while we're on Wayland.
|
||||
inherit glfw;
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue