dea-files/hosts/sandalphon/configuration.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

2026-01-08 13:59:34 -05:00
{
2026-01-09 13:26:43 -05:00
lib,
inputs,
2026-01-08 13:59:34 -05:00
pkgs,
2026-01-09 13:27:52 -05:00
config,
2026-01-08 13:59:34 -05:00
...
}:
let
nvidiaPackage = config.hardware.nvidia.package;
in
2026-01-08 13:59:34 -05:00
{
2026-01-09 13:26:43 -05:00
networking.hostName = lib.mkDefault "sandalphon";
# nvidia drivers
hardware.graphics.enable = true;
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
2026-01-09 13:26:43 -05:00
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;
open = lib.mkOverride 990 (nvidiaPackage ? open && nvidiaPackage ? firmware);
2026-01-09 13:26:43 -05:00
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
2026-01-08 13:59:34 -05:00
2026-01-09 15:50:11 -05:00
services.flatpak = {
enable = true;
packages = [
{
appId = "org.vinegarhq.Sober";
origin = "flathub";
}
];
update.onActivation = true;
uninstallUnmanaged = true;
};
2026-01-08 13:59:34 -05:00
environment.systemPackages = with pkgs; [
2026-01-09 15:50:11 -05:00
2026-01-08 13:59:34 -05:00
];
}