This commit is contained in:
2026-06-23 09:12:21 +01:00
parent ca0486baff
commit c072c583d1
8 changed files with 163 additions and 85 deletions
+3 -2
View File
@@ -12,6 +12,7 @@
den.aspects.doloro-shared
modules.sops
modules.flatpaks
modules.gamemode
modules.hyprland
modules.fish
modules.tuigreet
@@ -35,7 +36,7 @@
modules.nix-ld
modules.spotify
# modules.easyeffects
modules.lavd
# modules.lavd
modules.ai
# modules.omp
modules.podman
@@ -91,7 +92,7 @@
prismlauncher
# deadlock-mod-manager
inputs.nik-pkgs.packages.x86_64-linux.grimorie
gamescope
# gamescope
android-studio
blender
bottles
@@ -98,6 +98,14 @@
boot.binfmt.emulatedSystems = [
"aarch64-linux"
];
services.scx = {
enable = true;
package = pkgs.scx.rustscheds;
};
systemd.services.scx.environment = {
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
SCX_FLAGS_OVERRIDE = "--performance --no-core-compaction";
};
};
};
}
+40
View File
@@ -0,0 +1,40 @@
{ modules, ... }:
{
modules.gamemode = {
homeManager =
{ home, ... }:
{
};
nixos =
{ nixos, ... }:
{
programs.gamemode = {
enable = true;
enableRenice = true;
settings = {
general = {
renice = 10;
ioprio = 0;
inhibit_screensaver = 1;
disable_splitlock = 1;
};
cpu = {
park_cores = "no";
pin_cores = "yes";
};
gpu = {
apply_gpu_optimisations = "accept-responsibility";
gpu_device = 1;
nv_powermizer_mode = 1;
nv_perf_level = -1;
};
script = {
gamestart = "nvidia-smi --power-limit=175";
gamestop = "nvidia-smi --power-limit=125";
};
};
};
};
};
}
+13 -6
View File
@@ -4,6 +4,18 @@
nixos =
{ pkgs, ... }:
{
programs.gamescope = {
enable = true;
package = (
pkgs.gamescope.overrideAttrs {
enableWsi = true;
# Fixes some games being blurry under wayland backend
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
}
);
# Breaks steam launching gamescope
# capSysNice = true;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
@@ -26,13 +38,8 @@
libkrb5
keyutils
mangohud
gamemode
# gamemode
lsof
(gamescope.overrideAttrs {
enableWsi = true;
# Fixes some games being blurry under wayland backend
NIX_CFLAGS_COMPILE = [ "-fno-fast-math" ];
})
];
};
};
+13 -2
View File
@@ -10,7 +10,7 @@
flake-file.inputs = {
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
# inputs.nixpkgs.follows = "nixpkgs";
};
};
modules = {
@@ -22,6 +22,13 @@
homeManager =
{ pkgs, ... }:
let
# REPLACE THIS ONCE ITS FIXED IN UPSTREAM
cssLsFixed = pkgs.vscode-langservers-extracted.overrideAttrs (old: {
postInstall = (old.postInstall or "") + ''
sed -i 's/import\.meta\.url/"file:\/\/"+__filename/g' \
$out/lib/node_modules/vscode-langservers-extracted/lib/css-language-server/node/cssServerMain.js
'';
});
tiny-code-action = pkgs.vimUtils.buildVimPlugin {
name = "tiny-code-action.nvim";
src = pkgs.fetchFromGitHub {
@@ -44,6 +51,7 @@
config = {
allowUnfree = true;
};
# source = pkgs;
};
colorschemes.gruvbox-material.enable = true;
# colorschemes.melange = {
@@ -138,7 +146,10 @@
ts_ls = {
enable = true;
};
cssls.enable = true;
cssls = {
enable = true;
package = cssLsFixed;
};
svelte.enable = true;
};
};
+1 -1
View File
@@ -18,7 +18,7 @@
# Most energy efficent scheduler setup..
systemd.services.scx.environment = {
SCX_SCHEDULER_OVERRIDE = "scx_lavd";
SCX_FLAGS_OVERRIDE = "--powersave --cpu-pref-order=0-4,5-11";
SCX_FLAGS_OVERRIDE = "--powersave --no-core-compaction";
};
};
};