about summary refs log tree commit diff
path: root/nix/awesome.nix
blob: 51c0ccc04126b1f1d340b360dcb68d126d3ab0e7 (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
{ pkgs, ... }:

{
  fonts.fonts = with pkgs; [ gentium lmodern 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; [
    gnome.adwaita-icon-theme gnome.networkmanagerapplet qt5ct
    clipbuzz playerctl pulsemixer xclip xdotool xscreensaver
    aerc amfora ncdu newsboat ranger ueberzug rxvt-unicode vim_configurable
    arandr audacious keynav scrot sigil xorg.xkill zathura
    firefox libreoffice mumble nheko tor-browser-bundle-bin transmission-gtk
  ];

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