- Added `flake.lock` to pin dependencies (nixpkgs, home-manager, nixvim, flake-utils, etc.) - Cleaned up `.gitignore`: stop ignoring `*.lock` - Removed unused `flake-utils.inputs.nixpkgs.follows` - Nixstation host: - Removed `keychron.nix`, Wacom tablet config, and redundant session variables - Simplified GDM/GNOME configuration and XKB layout - Commented out virtualisation setup - Common NVIDIA host config: - Added explicit kernel modules, parameters, blacklists, and kernel version - Ensured GNOME + GDM configuration present - Updated NVIDIA driver settings and CUDA support
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ pkgs
|
|
, ...
|
|
}:
|
|
{
|
|
imports = [
|
|
# ./passthrough.nix
|
|
];
|
|
boot.kernelModules = [ "nvidia" ];
|
|
boot.kernelParams = ["nvidia-drm.modset=1"];
|
|
boot.blacklistedKernelModules = ["nouveau"];
|
|
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
|
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 = {
|
|
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
|
|
];
|
|
}
|