Files
nix-config/configuration-vmgaming.nix
2026-04-10 18:38:21 +02:00

62 lines
1.2 KiB
Nix

{
config,
lib,
pkgs,
...
}: {
imports = [
./hosts/vmgaming
./modules/common/base.nix
./modules/common/desktop-i3.nix
./modules/common/parsec.nix
./modules/common/users.nix
./modules/laptop/gaming.nix
];
networking.hostName = "VMGaming";
networking.useDHCP = lib.mkDefault true;
boot.blacklistedKernelModules = ["nouveau"];
# services.spice-vdagentd.enable = true;
# Gaming VM guest optimizations
programs.gamemode.enable = true;
programs.gamescope.enable = true;
# security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
services.pulseaudio.enable = false;
# services.xserver.deviceSection = ''
# Option "AllowEmptyInitialConfiguration"
# '';
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
environment.systemPackages = with pkgs; [
mangohud
goverlay
vkbasalt
gamemode
];
custom.gaming.enable = true;
custom.gaming.enableXpadneo = false;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
};
};
}