feat: introduce specialisations into nix config
This commit is contained in:
@@ -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 ];
|
||||
}
|
||||
20
hosts/common/specialisations/gaming.nix
Normal file
20
hosts/common/specialisations/gaming.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
7
hosts/common/specialisations/powersave.nix
Normal file
7
hosts/common/specialisations/powersave.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
specialisation.powersave.configuration = {
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user