graphics added

This commit is contained in:
kenji
2025-06-30 15:19:13 -05:00
parent ed24c8eaea
commit d7489f811a
5 changed files with 99 additions and 14 deletions
+4 -8
View File
@@ -3,14 +3,10 @@
lib,
...
}: {
imports =
[
../modules/terminal.nix
../modules/desktop.nix
]
++ lib.optionals (myConfig.linux.gaming == true) [
../modules/gaming.nix
];
imports = [
../modules/terminal.nix
../modules/desktop.nix
];
programs.home-manager.enable = true;
+9 -5
View File
@@ -3,9 +3,13 @@
myConfig,
...
}: {
imports = [
../system/font.nix
../system/browser.nix
../system/wayland.nix
];
imports =
[
../system/font.nix
../system/browser.nix
../system/wayland.nix
]
++ lib.optionals (myConfig.linux.gaming == true) [
../system/graphics.nix
];
}
+75
View File
@@ -2,5 +2,80 @@
programs.mangohud = {
enable = true;
enableSessionWide = true;
settings = {
toggle_hud = "Shift_R+F12";
legacyLayout = false;
backgroundAlpha = 0.6;
roundCorners = 10;
backgroundColor = "000000";
fontSize = 24;
textColor = "FFFFFF";
position = "top-left";
tableColumns = 3;
gpuText = "GPU";
gpuStats = true;
gpuLoadChange = true;
gpuLoadValue = "50,90";
gpuLoadColor = "FFFFFF,FFAA7F,CC0000";
gpuCoreClock = true;
gpuMemClock = true;
gpuTemp = true;
gpuPower = true;
gpuColor = "2E9762";
cpuText = "CPU";
cpuStats = true; # Assuming this implies cpu_stats is enabled
cpuLoadChange = true;
cpuLoadValue = "50,90";
cpuLoadColor = "FFFFFF,FFAA7F,CC0000";
cpuMhz = true;
cpuTemp = true;
cpuPower = true;
cpuColor = "2E97CB";
vram = true;
vramColor = "AD64C1"; # Note: you had this twice, keeping one
ram = true;
ramColor = "C26693";
battery = true;
batteryColor = "00FF00";
fps = true;
fpsMetrics = "avg,0.01";
engineVersion = true;
engineColor = "EB5B5B";
frameTiming = true;
frametimeColor = "FFFFFF";
fpsLimitMethod = "late";
toggleFpsLimit = "Shift_L+F1";
fpsLimit = 0;
fpsColorChange = true;
fpsColor = "B22222,FDFD09,39F900";
fpsValue = "30,60";
# The 'offset' setting was commented out in your original file,
# so it's omitted here.
outputFolder = "/home/kenji";
logDuration = 30;
autostartLog = 0;
logInterval = 100;
toggleLogging = "Shift_L+F2";
blacklist = [
"pamac-manager"
"lact"
"ghb"
"bitwig-studio"
"ptyxis"
"yumex"
];
};
};
}
+6
View File
@@ -0,0 +1,6 @@
{...}: {
hardware.graphics = {
enable = true;
enable32Bit = true; # Crucial for 32-bit games
};
}
+5 -1
View File
@@ -1,4 +1,8 @@
{myConfig, ...}: {
{
myConfig,
pkgs,
...
}: {
hardware = {
logitech.wireless.enable = myConfig.linux.logitech-hardware.enable;
bluetooth = {