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";
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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"
|
||||||
|
])
|
||||||
];
|
];
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user