2015-05-21 13:27:06 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
2015-05-21 14:13:47 +00:00
|
|
|
[
|
|
|
|
./common.nix
|
2016-07-22 11:01:40 +00:00
|
|
|
./large-sw.nix
|
2015-05-21 14:13:47 +00:00
|
|
|
./uefi.nix
|
2015-12-06 09:03:22 +00:00
|
|
|
./fstrim.nix
|
2015-05-21 13:27:06 +00:00
|
|
|
];
|
|
|
|
|
2015-09-11 04:59:32 +00: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 13:27:06 +00:00
|
|
|
|
2016-08-01 07:11:06 +00:00
|
|
|
services.xserver = {
|
2016-09-21 13:11:01 +00:00
|
|
|
libinput.enable = true;
|
2016-08-01 07:11:06 +00:00
|
|
|
config = ''
|
2015-05-21 13:27:06 +00:00
|
|
|
Section "InputClass"
|
2016-09-21 13:11:01 +00:00
|
|
|
Identifier "touchpad"
|
|
|
|
Driver "libinput"
|
2015-05-21 13:27:06 +00:00
|
|
|
MatchDevicePath "/dev/input/event*"
|
2016-09-21 13:11:01 +00:00
|
|
|
MatchIsPointer "true"
|
|
|
|
EndSection
|
2015-05-21 13:27:06 +00:00
|
|
|
'';
|
2016-09-21 13:11:01 +00:00
|
|
|
|
2016-08-01 07:11:06 +00:00
|
|
|
videoDrivers = [ "modesetting" ];
|
|
|
|
useGlamor = true;
|
|
|
|
};
|
|
|
|
programs.light.enable = true;
|
2015-05-21 13:27:06 +00:00
|
|
|
|
|
|
|
services.tlp.enable = true;
|
|
|
|
|
|
|
|
networking.hostName = "theba"; # Define your hostname.
|
|
|
|
networking.hostId = "b29b900f";
|
|
|
|
|
2015-07-12 13:34:34 +00:00
|
|
|
# services.colord.enable = true;
|
2015-06-03 11:14:03 +00:00
|
|
|
|
2015-07-26 14:09:32 +00:00
|
|
|
systemd.services.ModemManager.enable = true;
|
|
|
|
|
2016-06-14 12:22:29 +00:00
|
|
|
hardware.opengl.extraPackages = [ pkgs.vaapiIntel ];
|
2015-08-27 08:05:07 +00:00
|
|
|
|
2015-08-27 08:05:18 +00:00
|
|
|
nixpkgs.config.packageOverrides = pkgs: rec {
|
|
|
|
};
|
|
|
|
|
2015-09-11 05:14:03 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
unison
|
|
|
|
];
|
|
|
|
|
2016-10-16 13:40:21 +00:00
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
storageDriver = "overlay2";
|
|
|
|
};
|
2015-12-06 09:06:39 +00:00
|
|
|
users.extraUsers.gebner.extraGroups = [ "docker" ];
|
|
|
|
|
2016-06-21 11:11:12 +00:00
|
|
|
virtualisation.virtualbox.host.enable = true;
|
|
|
|
|
2016-08-01 07:11:06 +00:00
|
|
|
# boot.kernelPackages = pkgs.lib.mkOverride 10 pkgs.linuxPackages;
|
2016-07-08 07:05:57 +00:00
|
|
|
|
2017-08-06 08:47:43 +00:00
|
|
|
# time.timeZone = pkgs.lib.mkOverride 10 "Europe/London";
|
2016-09-04 08:59:20 +00:00
|
|
|
|
2017-05-24 12:51:51 +00:00
|
|
|
services.avahi.nssmdns = true;
|
|
|
|
|
2015-05-21 13:27:06 +00:00
|
|
|
}
|