nixos: gaming config
This commit is contained in:
parent
fe0166970e
commit
cf1813f3c0
|
@ -3,6 +3,12 @@
|
|||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
initrd = {
|
||||
verbose = false;
|
||||
systemd.enable = true;
|
||||
|
|
|
@ -35,12 +35,9 @@ in
|
|||
./nvidia.nix
|
||||
./boot.nix
|
||||
./home.nix
|
||||
./gaming.nix
|
||||
];
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Nix package installer settings
|
||||
nix = {
|
||||
settings = {
|
||||
|
@ -128,7 +125,6 @@ in
|
|||
enableSSHSupport = true;
|
||||
};
|
||||
};
|
||||
steam.enable = true;
|
||||
fish.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
|
@ -148,6 +144,12 @@ in
|
|||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
# Enable fstrim for SSD
|
||||
services.fstrim.enable = true;
|
||||
|
||||
# Hard disk protection if the laptop falls
|
||||
services.hdapsd.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
|
|
22
nixos/msi/gaming.nix
Normal file
22
nixos/msi/gaming.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
mangohud
|
||||
protonup
|
||||
lutris
|
||||
bottles
|
||||
];
|
||||
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
};
|
||||
gamemode.enable = true;
|
||||
};
|
||||
|
||||
environment.sessionVariables = {
|
||||
# Tell protonup where to install patched proton GE
|
||||
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/kamov/.steam/root/compatibilitytools.d";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue