dea-files/hosts/sandalphon/configuration.nix
2026-01-09 13:27:52 -05:00

37 lines
937 B
Nix

{
lib,
inputs,
pkgs,
config,
...
}:
{
networking.hostName = lib.mkDefault "sandalphon";
# nvidia drivers
hardware.graphics = {
enable = true;
};
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
environment.systemPackages = with pkgs; [
prismlauncher # minecraft
waywall # mcsr
];
}