1 { config, lib, pkgs, ... }:
6 cfg = config.services.xserver.windowManager.qtile;
10 options.services.xserver.windowManager.qtile = {
11 enable = mkEnableOption (lib.mdDoc "qtile");
13 package = mkPackageOption pkgs "qtile" { };
16 config = mkIf cfg.enable {
17 services.xserver.windowManager.session = [{
20 ${cfg.package}/bin/qtile start &
25 environment.systemPackages = [
26 # pkgs.qtile is currently a buildenv of qtile and its dependencies.
27 # For userland commands, we want the underlying package so that
28 # packages such as python don't bleed into userland and overwrite intended behavior.
29 (cfg.package.unwrapped or cfg.package)