Heroic moved to stable and nvtop commented out

This commit is contained in:
foglar 2025-01-01 16:42:41 +01:00
parent 688cf330ca
commit 5e09533ca1
4 changed files with 44 additions and 35 deletions

View File

@ -56,6 +56,7 @@ sudo nixos-rebuild switch --flake ~/.dotfiles#kogami
- The system consists currently from 2 profiles:
- [Kogami](./kogami/) - My daily driver notebook
- [Ginoza](./ginoza/) - Old notebook, only essentials installed
- [Tsunemori](./tsunemori/) - Phone configuration, for those moments without notebook
### Custom setup

View File

@ -1,4 +1,8 @@
{userSettings, ...}: {
{
userSettings,
pkgs,
...
}: {
# Home manager configuration
home.username = "${userSettings.username}";
home.homeDirectory = "/home/${userSettings.username}";

View File

@ -1,5 +1,6 @@
{
pkgs,
pkgs-stable,
lib,
config,
...
@ -9,43 +10,46 @@
lib.mkEnableOption "enable games";
};
config = lib.mkIf config.app_list.games.enable {
home.packages = with pkgs; [
vitetris
steam
superTuxKart
heroic
wine
home.packages =
(with pkgs; [
vitetris
steam
superTuxKart
wine
(writeShellScriptBin "gs" ''
set -xeuo pipefail
(writeShellScriptBin "gs" ''
set -xeuo pipefail
gamescopeArgs=(
--adaptive-sync # VRR support
--hdr-enabled
--mangoapp # performance overlay
--rt
--steam
)
steamArgs=(
-pipewire-dmabuf
-tenfoot
)
mangoConfig=(
cpu_temp
gpu_temp
ram
vram
)
mangoVars=(
MANGOHUD=1
MANGOHUD_CONFIG="$(IFS=,; echo "''${mangoConfig[*]}")"
)
gamescopeArgs=(
--adaptive-sync # VRR support
--hdr-enabled
--mangoapp # performance overlay
--rt
--steam
)
steamArgs=(
-pipewire-dmabuf
-tenfoot
)
mangoConfig=(
cpu_temp
gpu_temp
ram
vram
)
mangoVars=(
MANGOHUD=1
MANGOHUD_CONFIG="$(IFS=,; echo "''${mangoConfig[*]}")"
)
export "''${mangoVars[@]}"
exec gamescope "''${gamescopeArgs[@]}" -- steam "''${steamArgs[@]}"
export "''${mangoVars[@]}"
exec gamescope "''${gamescopeArgs[@]}" -- steam "''${steamArgs[@]}"
'')
];
'')
])
++ (with pkgs-stable; [
heroic
]);
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [

View File

@ -28,7 +28,7 @@
++ (
if pkgs.system == "x86_64-linux"
then [
nvtopPackages.full
#nvtopPackages.full
]
else []
);