feat: introduce specialisations into nix config

This commit is contained in:
2025-08-15 18:17:59 +05:00
parent d9532aef28
commit 871d3903f7
4 changed files with 36 additions and 17 deletions

View File

@@ -1,16 +0,0 @@
{ pkgs, ... }:
{
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
};
# to run steam games in game mode, add the following to the game's properties from within steam
# gamemoderun %command%
gamemode.enable = true;
};
environment.systemPackages = with pkgs; [ mangohud protonup-qt ];
}

View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
{
specialisation.gaming.configuration = {
programs = {
steam = {
enable = true;
gamescopeSession.enable = true;
};
# to run steam games in game mode, add the following to the game's properties from within steam
# gamemoderun %command%
gamemode.enable = true;
};
powerManagement.cpuFreqGovernor = "performance";
environment.systemPackages = with pkgs; [ mangohud protonup-qt ];
};
}

View File

@@ -0,0 +1,7 @@
{ ... }:
{
specialisation.powersave.configuration = {
powerManagement.cpuFreqGovernor = "powersave";
};
}