feat: nvidia logind seatd gamescope config update

Nvidia: added Dynamic Boost and fixed PRIME BusIDs
Gamescope: added capSysNice definition
Fcitx5: change names to resolve eval warning
Logind: Delayed processing of power key press (600ms)
This commit is contained in:
Zhongheng Liu 2024-10-02 17:36:18 +03:00
commit 4a99257e90
No known key found for this signature in database
6 changed files with 40 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{...}: {
services.avahi = {
enable = true;
nssmdns = true;
nssmdns4 = true;
openFirewall = true;
};
}

View file

@ -7,5 +7,8 @@
./avahi.service.nix
./printing.service.nix
./tailscale.service.nix
./power_management.service.nix
./seatd.service.nix
./logind.service.nix
];
}

View file

@ -0,0 +1,15 @@
{
pkgs,
config,
lib,
...
}: {
services.logind.extraConfig = ''
# don't shutdown in short press
HandlePowerKey=ignore
IdleAction=suspend
# Milliseconds
IdleActionSec=600
'';
}

View file

@ -0,0 +1,10 @@
{
pkgs,
config,
lib,
...
}: {
services.seatd = {
enable = true;
};
}