-
Notifications
You must be signed in to change notification settings - Fork 0
/
mac.nix
42 lines (33 loc) · 955 Bytes
/
mac.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
## mac hardware / low-level stuff
{ config, pkgs, ... }:
{
hardware.enableAllFirmware = true;
# select the right sound card,
boot.extraModprobeConfig = ''
options snd_hda_intel enable=0,1
'';
hardware.bluetooth.enable = true;
hardware.pulseaudio = {
enable = true;
package = pkgs.pulseaudioFull;
};
environment.systemPackages = [ pkgs.pavucontrol ];
# Use the gummiboot efi boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.timeout = 5;
boot.loader.efi.canTouchEfiVariables = true;
boot.cleanTmpDir = true;
# configure multitouch options
services.xserver.libinput = {
enable = true;
accelSpeed = "0.2";
naturalScrolling = true;
#multitouch.enable = true;
#multitouch.invertScroll = true;
#multitouch.ignorePalm = true;
#multitouch.additionalOptions = ''
#Option "FingerHigh" "20"
#'';
};
services.xserver.config = " # adding another comment";
}