summaryrefslogtreecommitdiff
path: root/modules/desktop.nix
blob: f8191869ed8ec60133cb3873f16292573e4016ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ pkgs, ... }: {

  imports = [
    ./nvidia.nix
  ];

  environment.systemPackages = with pkgs; [
    openrgb-with-all-plugins
    phoronix-test-suite
  ];

  # Fix "graphics reset" issue with nvidia GPU
  # See section 10 of https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
  boot.extraModprobeConfig = ''
    options nvidia  NVreg_PreserveVideoMemoryAllocations=1
  '';
  

  # Automaticaly mount C drive
  fileSystems."/mnt/c" = {
    device = "/dev/nvme1n1p4";
    fsType = "ntfs-3g";
    options = [ "rw" "noatime" "uid=1000" ];
  };

  # Automatically mount E drive
  fileSystems."/mnt/e" = {
    device = "/dev/sda2";
    fsType = "ntfs-3g";
    options = [ "rw" "noatime" "uid=1000" ];
  };

}