-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardware.nix
60 lines (49 loc) · 1.28 KB
/
hardware.nix
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
boot.loader = {
grub.enable = true;
grub.device = "nodev";
grub.useOSProber = true;
grub.efiSupport = true;
systemd-boot.enable = false;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
fileSystems."/media/ext2" =
{ noCheck = true;
options = [ "uid=1000" "gid=1000" ];
};
fileSystems."/media/ext1" =
{ noCheck = true;
options = [ "uid=1000" "gid=1000" ];
};
fileSystems."/media/win1" =
{ device = "/dev/disk/by-uuid/C4A6BC42A6BC3730";
fsType = "ntfs";
};
fileSystems."/media/win2" =
{ device = "/dev/disk/by-uuid/9A629A3C629A1CD7";
fsType = "ntfs";
};
powerManagement.cpuFreqGovernor = "performance";
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
open = false;
nvidiaSettings = true;
# package = ... # select version
forceFullCompositionPipeline = false;
};
# Enable CUPS to print documents.
# services.printing.enable = true;
# Bluetooth
# hardware.bluetooth.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
}