nix-conf/hosts/common/nvidia/default.nix
Thiago Sposito 95e94196b2 refactor: cleanup configs, unify session handling
- flake.nix:
  - Close braces formatting for `allowUnfree`
  - Remove per-user `custom.sessionType` modules
- home-manager:
  - home.nix: remove unused apps (bambu-studio, hydralauncher, keymapp, etc.)
    - drop librespot service
    - add waydroid
    - fix kitty font_family spacing
  - gnome: add gnome-tweaks and appindicator extension
  - vim: update nixvim module import path
  - zsh: drop sessionType option and conditional aliases
    - hardcode wl-copy/wl-paste as pbcopy/pbpaste
- hyprland: style fixes in braces, spacing, keybind comments
- hosts/Nixstation:
  - remove gnome-session and redundant tweaks
  - remove env vars NIXOS_HOST / NIXOS_DE
  - enable virtualization (libvirtd, spiceUSBRedirection, vmware.host=false)
- hardware-configuration: reformat fileSystems definitions
- common/nvidia:
  - remove explicit kernelPackages override
  - ensure xserver.enable=true and GNOME/GDM config intact
- users/thiago: reorder and regroup extraGroups list
2025-08-25 20:36:59 -03:00

51 lines
1.1 KiB
Nix

{ pkgs
, ...
}:
{
imports = [
# ./passthrough.nix
];
boot.kernelModules = [ "nvidia" ];
boot.kernelParams = [ "nvidia-drm.modset=1" ];
boot.blacklistedKernelModules = [ "nouveau" ];
hardware = {
graphics = {
enable = true;
enable32Bit = true;
};
nvidia-container-toolkit = {
enable = true;
suppressNvidiaDriverAssertion = true;
};
nvidia = {
modesetting.enable = true;
nvidiaSettings = true;
open = false;
package = pkgs.linuxPackages.nvidiaPackages.latest;
powerManagement.enable = false;
powerManagement.finegrained = false;
};
};
services = {
services.xserver.enable = true;
desktopManager.gnome.enable = true;
displayManager = {
gdm.enable = true;
gdm.wayland = true;
defaultSession = "gnome";
};
xserver.videoDrivers = [ "nvidia" ];
};
nixpkgs.config.cudaSupport = true;
environment.systemPackages = with pkgs; [
cudaPackages.cuda_nvcc
cudaPackages.cudatoolkit
glxinfo
libepoxy
libglvnd
mesa
nvidia-container-toolkit
];
}