Refactoring and fixing

This commit is contained in:
2025-09-16 19:51:36 +03:00
parent c5320ce825
commit 33658c20eb
8 changed files with 91 additions and 14 deletions

View File

@@ -45,6 +45,7 @@ in
enable = true;
user = "fenix";
};
lact.enable = true;
};
systemd.services.calibre-web.serviceConfig.environment = lib.mkForce "";
systemd.services.calibre-web.environment.CACHE_DIR = "/var/cache/calibre-web";
@@ -72,6 +73,7 @@ in
"input"
"audio"
"users"
"gamemode"
];
});
groups = {
@@ -100,4 +102,40 @@ in
kwallet.enable = true;
});
};
programs = {
gamemode = {
enable = true;
settings = {
general = {
renice = 10;
# blacklist = "vlc,firefox";
# whitelist = "game1,game2";
};
cpu = {
governor = "performance";
boost = "auto";
};
gpu = {
amd_performance_level = "high";
apply_gpu_optimizations = 1;
per_process_gpu_clocks = 1;
};
supervisor = {
# killlist = "tracker-miner-fs,tracker-store";
};
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
};
hardware.graphics = {
extraPackages = with pkgs; [
libva
vulkan-tools
];
};
}

View File

@@ -16,6 +16,7 @@ in
packages = with pkgs; [
calibre
spotify
obsidian
transmission_4-qt6
# Games
@@ -45,7 +46,6 @@ in
vscode.enable = true;
gpg.enable = true;
neovim.enable = true;
obsidian.enable = true;
ssh.enable = true;
vivaldi = {