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

{
  imports = [ ./redshift.nix ];

  fonts.fonts = with pkgs; [ lmodern ];

  services = {
    autorandr.enable = true;
    xserver = {
      enable = true;
      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; [ table table-others ];
    };
  };

  environment.systemPackages = with pkgs; [
    gnome.adwaita-icon-theme qt5ct
    gnome.networkmanagerapplet keynav mate.mate-power-manager
    clipnotify playerctl pulsemixer xclip xdotool
    rxvt_unicode-with-plugins urxvt_autocomplete_all_the_things urxvt_font_size
    aerc amfora newsboat ranger ueberzug vim_configurable
    arandr audacious firefox gimp nheko scrot xorg.xkill zathura
  ];

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