nixos-config/theba.nix

72 lines
1.5 KiB
Nix
Raw Normal View History

2015-05-21 15:27:06 +02:00
{ config, pkgs, ... }:
{
imports =
2015-05-21 16:13:47 +02:00
[
./common.nix
./uefi.nix
2015-12-06 10:03:22 +01:00
./fstrim.nix
2015-05-21 15:27:06 +02:00
];
2015-09-11 06:59:32 +02:00
environment.etc."lvm/lvm.conf".text = ''
devices {
issue_discards = 1
}
'';
boot.initrd.luks.devices = [
{
name = "sda2_crypt";
device = "/dev/disk/by-uuid/a7482f34-1d7b-4181-9f3c-f6bbbdb8679d";
preLVM = true;
allowDiscards = true;
}
];
2015-05-21 15:27:06 +02:00
# workaround until trackpad is supported properly
boot.extraModprobeConfig = ''
options psmouse proto=imps
'';
hardware.trackpoint = {
enable = true;
# emulateWheel = true;
};
services.xserver.config =
''
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "PS/2 Synaptics TouchPad"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
'';
services.tlp.enable = true;
networking.hostName = "theba"; # Define your hostname.
networking.hostId = "b29b900f";
# services.colord.enable = true;
2015-07-26 16:09:32 +02:00
systemd.services.ModemManager.enable = true;
2016-06-14 14:22:29 +02:00
hardware.opengl.extraPackages = [ pkgs.vaapiIntel ];
2015-08-27 10:05:07 +02:00
2015-08-27 10:05:18 +02:00
nixpkgs.config.packageOverrides = pkgs: rec {
};
2015-09-11 07:14:03 +02:00
environment.systemPackages = with pkgs; [
unison
];
2015-12-06 10:06:39 +01:00
virtualisation.docker.enable = true;
users.extraUsers.gebner.extraGroups = [ "docker" ];
2016-06-21 13:11:12 +02:00
virtualisation.virtualbox.host.enable = true;
2015-05-21 15:27:06 +02:00
}