about summary refs log tree commit diff
path: root/nix/awesome.nix
blob: 1865b80fd60aef74c6211198f2ff7f5d8399344b (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
{ pkgs, ... }:
{
  fonts.fonts = with pkgs; [
    gentium lmodern
    noto-fonts-cjk-sans noto-fonts-emoji
  ];

  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.
    };
  };

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

  environment.systemPackages = with pkgs; [
    easyeffects gnome.adwaita-icon-theme networkmanagerapplet qt5ct
    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 obs-studio tor-browser-bundle-bin
    nextcloud-client transmission-gtk
  ];

  hardware.brillo.enable = true;
  programs.nm-applet.enable = true;
  programs.slock.enable = true;
}