about summary refs log tree commit diff
path: root/nix/awesome.nix
blob: 7b106a0856187230336fa425b31e75f3ef60d9a9 (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
59
60
61
{ pkgs, ... }:
{
  environment.systemPackages = with pkgs; let wee-slack = weechat.override {
    configure = { ... }: {
      scripts = [ weechatScripts.wee-slack ];
    };
  };
  in [
    clipbuzz keynav labwc playerctl pulsemixer xclip xdotool xorg.xkill
    aerc amfora calcurse dante khard mu ncdu ranger senpai ueberzug
    arandr audacious foot liferea scrot rxvt-unicode zathura
    firefox libreoffice nheko tor-browser-bundle-bin wee-slack
    networkmanagerapplet nextcloud-client transmission-gtk
    gnome.adwaita-icon-theme qt5ct
  ];

  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 = {
    mepo.enable = true;
    nm-applet.enable = true;
    slock.enable = true;
  };

  qt = {
    enable = true;
    platformTheme = "qt5ct";
  };

  services = {
    autorandr.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.
    };
  };
}