about summary refs log tree commit diff
path: root/machines/asus/configuration.nix
blob: a64f9d2043af61c409f875c59ab1e70f75944785 (plain)
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
{ config, pkgs, ... }:
let
  screen-orient = pkgs.writeScriptBin "screen-orient" ''
    #!${pkgs.stdenv.shell}
    xrandr --output DSI1 --primary --mode 800x1280 --pos 0x0 --rotate left --output DP1 --off --output HDMI1 --off

xinput set-prop "SIS0457:00 0457:113D" "Coordinate Transformation Matrix" 0 -1 1 1 0 0 0 0 1
  '';
in
{

  imports = [
    ../base.nix
    ../pl.nix
    ../../modules/larbs.nix
    ../../modules/trackpad.nix
  ];

  networking = {
    hostName = "asus-t100";

    networkmanager = {
      enable = true;
      wifi.backend = "iwd";
    };
  };


  environment.systemPackages = with pkgs; [
    libimobiledevice
    screen-orient
  ];

  services.usbmuxd.enable = true;

  services.acpid.enable = true;

  # Battery
  services.tlp.enable = true;

  services.xserver = {
    videoDrivers = [ "intel" ];
    deviceSection = ''
      Option "Backlight" "intel_backlight"
      Option "DIR" "2"
      Option "TearFree" "true"
    '';
  };

}