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:
parent
83c26c1e31
commit
4a99257e90
6 changed files with 40 additions and 7 deletions
|
@ -22,9 +22,14 @@
|
||||||
FLAKE = config.myConfigLocation;
|
FLAKE = config.myConfigLocation;
|
||||||
GTK_IM_MODULE = lib.mkForce "";
|
GTK_IM_MODULE = lib.mkForce "";
|
||||||
};
|
};
|
||||||
|
programs.gamescope = {
|
||||||
|
enable = true;
|
||||||
|
capSysNice = true;
|
||||||
|
};
|
||||||
security.pam.services.hyprlock = {};
|
security.pam.services.hyprlock = {};
|
||||||
i18n.inputMethod = {
|
i18n.inputMethod = {
|
||||||
enabled = "fcitx5";
|
type = "fcitx5";
|
||||||
|
enable = true;
|
||||||
fcitx5.addons = with pkgs; [
|
fcitx5.addons = with pkgs; [
|
||||||
fcitx5-mozc
|
fcitx5-mozc
|
||||||
fcitx5-gtk
|
fcitx5-gtk
|
||||||
|
@ -65,9 +70,7 @@
|
||||||
true; # Open ports in the firewall for Source Dedicated Server
|
true; # Open ports in the firewall for Source Dedicated Server
|
||||||
localNetworkGameTransfers.openFirewall =
|
localNetworkGameTransfers.openFirewall =
|
||||||
true; # Open ports in the firewall for Steam Local Network Game Transfers
|
true; # Open ports in the firewall for Steam Local Network Game Transfers
|
||||||
gamescopeSession = {
|
extraCompatPackages = with pkgs; [proton-ge-bin];
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
programs.gamemode.enable = true;
|
programs.gamemode.enable = true;
|
||||||
boot = {
|
boot = {
|
||||||
|
|
|
@ -24,18 +24,20 @@
|
||||||
};
|
};
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
dynamicBoost.enable = true;
|
||||||
prime = {
|
prime = {
|
||||||
offload.enable = false;
|
offload.enable = false;
|
||||||
sync = {
|
sync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
amdgpuBusId = "PCI:5:0:0";
|
amdgpuBusId = "PCI:6:0:0";
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
};
|
};
|
||||||
forceFullCompositionPipeline = true;
|
forceFullCompositionPipeline = true;
|
||||||
|
powerManagement.enable = true;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns = true;
|
nssmdns4 = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,8 @@
|
||||||
./avahi.service.nix
|
./avahi.service.nix
|
||||||
./printing.service.nix
|
./printing.service.nix
|
||||||
./tailscale.service.nix
|
./tailscale.service.nix
|
||||||
|
./power_management.service.nix
|
||||||
|
./seatd.service.nix
|
||||||
|
./logind.service.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
15
nixos/services/logind.service.nix
Normal file
15
nixos/services/logind.service.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.logind.extraConfig = ''
|
||||||
|
# don't shutdown in short press
|
||||||
|
HandlePowerKey=ignore
|
||||||
|
IdleAction=suspend
|
||||||
|
|
||||||
|
# Milliseconds
|
||||||
|
IdleActionSec=600
|
||||||
|
'';
|
||||||
|
}
|
10
nixos/services/seatd.service.nix
Normal file
10
nixos/services/seatd.service.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.seatd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue