about summary refs log tree commit diff
path: root/nix/awesome.nix
blob: f80b85283eb3a7f67ed8e8a3ce179830e6fa09dd (plain) (blame)
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
51
52
53
54
55
56
57
58
{ pkgs, ... }:
{
  environment.systemPackages = with pkgs; [
    barrier gnome.adwaita-icon-theme networkmanagerapplet
    clipbuzz keynav playerctl pulsemixer xclip xdotool xorg.xkill
    aerc amfora calcurse dante khard ncdu ranger ueberzug vim_configurable
    arandr audacious gnucash liferea scrot rxvt-unicode zathura
    firefox libreoffice mepo-x11 nheko tor-browser-bundle-bin
    nextcloud-client transmission-gtk
    nordzy-cursor-theme
  ];

  fonts.fonts = with pkgs; [ lmodern noto-fonts-cjk-sans noto-fonts-emoji ];

  hardware.brillo.enable = true;

  i18n = {
    defaultLocale = "en_US.UTF-8";
    inputMethod = {
      enabled = "ibus";
      ibus.engines = with pkgs.ibus-engines; [
        hangul
        table table-others
      ];
    };
  };

  programs = {
    nm-applet.enable = true;
    slock.enable = true;
  };

  qt5 = {
    enable = true;
    platformTheme = "gnome";
    style = "adwaita-dark";
  };

  services = {
    autorandr.enable = true;
    geoclue2.enable = true;
    xserver = {
      videoDrivers = [ "intel" ];
      deviceSection = ''
        Option "TearFree" "true"
      '';

      enable = true;
      desktopManager.xterm.enable = false;
      displayManager.startx.enable = true;
      windowManager.awesome.enable = true;

      layout = "us";
      xkbOptions = "caps:ctrl_modifier,compose:menu";
      libinput.enable = true; # Enable touchpad support.
    };
  };
}