{ config, pkgs, ... }:

{
  services.xserver = {
    enable = true;
    layout = "us";

    displayManager.slim = {
      enable = true;
      autoLogin = true;
      defaultUser = "kiba";
    };

    desktopManager = {
      # Disable the defaults.  Don't use a desktop manager or xterm.
      default = "none";
      xterm.enable = false;
    };

    windowManager = {
      default = "spectrwm";
      spectrwm.enable = true;
    };
  };

  # Fonts to include
  fonts.fonts = [
    pkgs.corefonts # Microsoft free fonts
    pkgs.source-code-pro
    pkgs.source-sans-pro
    pkgs.source-serif-pro
  ];

  # Default fonts
  fonts.fontconfig.defaultFonts = {
    monospace = [ "Source Code Pro" ];
    sansSerif = [ "Source Sans Pro" ];
    serif = [ "Source Serif Pro" ];
  };

  environment.systemPackages = [
    # Browsers
    pkgs.chromium
    pkgs.firefox

    # Terminal
    pkgs.st

    # Menu
    pkgs.dmenu

    # Clipboard
    pkgs.xsel

    # Graphical lock
    pkgs.i3lock
  ];
}

{ config, pkgs, ... }:

{
  services.xserver = {
    enable = true;
    layout = "us";

    displayManager.slim = {
      enable = true;
      autoLogin = true;
      defaultUser = "kiba";
    };

    desktopManager = {
      # Disable the defaults.  Don't use a desktop manager or xterm.
      default = "none";
      xterm.enable = false;
    };

    windowManager = {
      default = "spectrwm";
      spectrwm.enable = true;
    };
  };

  # Fonts to include
  fonts.fonts = [
    pkgs.corefonts # Microsoft free fonts
    pkgs.source-code-pro
    pkgs.source-sans-pro
    pkgs.source-serif-pro
  ];

  # Default fonts
  fonts.fontconfig.defaultFonts = {
    monospace = [ "Source Code Pro" ];
    sansSerif = [ "Source Sans Pro" ];
    serif = [ "Source Serif Pro" ];
  };

  environment.systemPackages = [
    # Browsers
    pkgs.chromium
    pkgs.firefox

    # Terminal
    pkgs.st

    # Menu
    pkgs.dmenu

    # Clipboard
    pkgs.xsel

    # Fake keyboard/mouse input, window management, and more
    pkgs.xdotool

    # Graphical lock
    pkgs.i3lock

    # Screenshot tool
    pkgs.maim

    # Image viewer
    pkgs.sxiv
  ];
}

Add tools for taking screenshots and viewing images
Add tools for taking screenshots and viewing images

I added a few programs to the graphical workstation to enable taking
screenshots and viewing images.

* xdotool is specifically used for getting the active window id
* maim is a screenshot tool
* sxiv is an image viewer with simplicity and tiled window managers in
  mind
