aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/modules/workstation/ui/i3/x.nix
blob: 1313c138c8f1e98c5104c0ea253d838f96ead89e (plain)
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
{ lib, config, ... }:

let cfg = config.libkookie.ui.i3;
in
{
  enable = true;
  desktopManager = {
    xfce = {
      enable = true;
      noDesktop = true;
      enableXfwm = false;
    };
  };
  
  displayManager.defaultSession = lib.mkIf cfg.defaultSession "xfce+i3";

  windowManager.i3.enable = true;
  
  useGlamor = true;

  inherit (cfg) videoDrivers;

  deviceSection = ''
    Option "DRI" "2"
    Option "TearFree" "true"
  '';
}