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";
};
}

View File

@@ -42,7 +42,6 @@
"1password" "1password"
"dconf" "dconf"
"docker" "docker"
"gaming"
"hyprland" "hyprland"
"nix-ld" "nix-ld"
"secure-boot" "secure-boot"
@@ -63,6 +62,15 @@
"printing" "printing"
"smart-card" "smart-card"
]) ])
#
# ========= Specialisations ========
#
(map
(s: lib.custom.relativeToRoot "hosts/common/specialisations/${s}.nix") [
"gaming"
"powersave"
])
]; ];
# #