about summary refs log tree commit diff
path: root/modules/desktop/xserver.nix
blob: 1b96d03e939ec31073e33f12bff115b7abb18e5e (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
{ config, pkgs, lib, ... }:

{
  services.xserver = {
    enable = true;
    layout = "us";
    xkbOptions = "eurosign:e,ctrl:swapcaps";
    libinput.enable = true;

    desktopManager = {
      xterm.enable = false;
    };

    displayManager = {
      lightdm.enable = true;
      defaultSession = "none+i3";
    };

    windowManager = {
      i3.enable = true;
    };
  };

  programs.gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
  };

  environment.sessionVariables.TERMINAL = [ "alacritty" ];
  environment.sessionVariables.TERM = [ "xterm-256color" ];

  services.gnome.gnome-keyring.enable = true;
  services.gvfs.enable = true;
}