diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-18 10:33:00 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-18 10:33:00 +0530 |
| commit | 357e96e6603406d539d89f0c6ed12b1bf0287dca (patch) | |
| tree | 8b8a3c998c62d65a03e77ef1654fc48bc86d0de0 /nixos/nvidia.nix | |
| parent | 85809c17dd2afde7005aecbcec59b4474aa54d1e (diff) | |
fuck cuda + added cloc + fixed the install script
now i have to make the username generic
Diffstat (limited to 'nixos/nvidia.nix')
| -rw-r--r-- | nixos/nvidia.nix | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/nixos/nvidia.nix b/nixos/nvidia.nix deleted file mode 100644 index c6f08a9..0000000 --- a/nixos/nvidia.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ config, pkgs, ... }: -let unstable = import <nixos-unstable> { config.allowUnfree = true; }; -in { - hardware.graphics.enable = true; - hardware.nvidia = { - modesetting.enable = true; - package = config.boot.kernelPackages.nvidiaPackages.stable; - nvidiaSettings = true; - open = true; - }; - boot.kernelParams = [ "acpi_backlight=video" ]; - boot.initrd.kernelModules = [ "nvidia" "hp_wmi" ]; - services.xserver.videoDrivers = [ "nvidia" ]; - nixpkgs.config.cudaSupport = true; - - environment.systemPackages = with pkgs; [ - linuxPackages.nvidia_x11 - unstable.cudaPackages.cuda_cudart - unstable.cudaPackages.cudatoolkit - ]; - environment.sessionVariables = { - CUDA_HOME = "${pkgs.cudatoolkit}"; - CUDA_PATH = "${pkgs.cudatoolkit}"; - LD_LIBRARY_PATH = "${pkgs.linuxPackages.nvidia_x11}/lib"; - }; -} |
