2015-03-18 02:24:24 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
synaptics = {
|
|
|
|
twoFingerScroll = true;
|
2016-09-17 16:02:14 +02:00
|
|
|
horizontalScroll = true;
|
|
|
|
scrollDelta = -107; # inverted scrolling
|
2015-03-18 02:24:24 +01:00
|
|
|
};
|
2017-01-26 14:52:06 +01:00
|
|
|
libinput = {
|
|
|
|
naturalScrolling = true;
|
|
|
|
tappingDragLock = false;
|
|
|
|
};
|
2015-03-18 02:24:24 +01:00
|
|
|
layout = "us";
|
|
|
|
displayManager.slim.defaultUser = "yorick";
|
|
|
|
# xkbOptions = "eurosign:e";
|
2016-12-08 15:31:45 +01:00
|
|
|
windowManager.i3 = {
|
|
|
|
enable = true;
|
|
|
|
} // (if (lib.versionAtLeast config.system.nixosRelease "17.03") then {
|
|
|
|
package = pkgs.i3-gaps;
|
|
|
|
} else {});
|
2015-03-18 02:24:24 +01:00
|
|
|
};
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
2015-03-23 23:30:32 +01:00
|
|
|
hardware.pulseaudio.enable = true;
|
2015-12-21 00:52:48 +01:00
|
|
|
hardware.pulseaudio.support32Bit = true;
|
2015-03-18 02:24:24 +01:00
|
|
|
|
|
|
|
fonts = {
|
|
|
|
enableFontDir = true;
|
|
|
|
enableGhostscriptFonts = true;
|
|
|
|
fonts = with pkgs; [
|
|
|
|
corefonts # Micrsoft free fonts
|
|
|
|
inconsolata # monospaced
|
|
|
|
source-code-pro
|
|
|
|
ubuntu_font_family # Ubuntu fonts
|
2015-03-23 23:30:40 +01:00
|
|
|
source-han-sans-japanese
|
2015-03-18 02:24:24 +01:00
|
|
|
];
|
|
|
|
};
|
2015-03-18 02:45:48 +01:00
|
|
|
services.redshift = {
|
|
|
|
enable = true;
|
|
|
|
latitude = "51.8";
|
|
|
|
longitude = "5.8";
|
|
|
|
temperature = {
|
|
|
|
day = 6500;
|
|
|
|
night = 5500;
|
|
|
|
};
|
|
|
|
};
|
2016-12-08 15:31:45 +01:00
|
|
|
# spotify
|
|
|
|
networking.firewall.allowedTCPPorts = [57621];
|
|
|
|
networking.firewall.allowedUDPPorts = [57621];
|
2015-03-18 02:24:24 +01:00
|
|
|
}
|