summary refs log tree commit diff
path: root/nixos/modules/services/x11/window-managers/qtile.nix
blob: 835b41d4ada9483ca1f8549db1c4979667ffb508 (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
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.xserver.windowManager.qtile;
in

{
  options = {
    services.xserver.windowManager.qtile.enable = mkEnableOption "qtile";
  };

  config = mkIf cfg.enable {
    services.xserver.windowManager.session = [{
      name = "qtile";
      start = ''
        ${pkgs.qtile}/bin/qtile start &
        waitPID=$!
      '';
    }];

    environment.systemPackages = [ pkgs.qtile ];
  };
}