Compare commits

...

2 Commits

Author SHA1 Message Date
64958b068f Delete unnecessary nixos wayland config 2025-04-24 14:06:32 +02:00
95d9f9cf61 Add gamemode 2025-04-24 14:06:27 +02:00
4 changed files with 28 additions and 19 deletions

View File

@ -22,7 +22,9 @@
# ../common/optional/gdm.nix
../common/optional/greetd.nix
../common/optional/redshift.nix
../common/optional/gamemode.nix
# ../common/optional/redshift.nix
# ../common/optional/redshift.nix
../common/optional/virtualbox.nix
../common/optional/xdg-portal.nix # TODO: not needed?
../common/optional/polkit.nix # TODO: maybe not needed!

View File

@ -0,0 +1,24 @@
{ pkgs, ... }:
{
programs.gamemode = {
enable = true;
settings = {
general = {
softrealtime = "auto";
inhibit_screensaver = 1;
renice = 5;
};
# gpu = {
# apply_gpu_optimisations = "accept-responsibility";
# gpu_device = 1;
# amd_performance_level = "high";
# };
custom = {
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
};
};
};
}

View File

@ -1,18 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # Hint electron apps to use wayland
security.pam.services.gtklock = { };
environment.systemPackages = with pkgs; [
kdePackages.qtwayland
wl-clipboard
];
}

View File

@ -24,6 +24,7 @@ in
"podman"
"docker"
"git"
"gamemode"
];
openssh.authorizedKeys.keys = lib.splitString "\n" (