depot/third_party/nixpkgs/nixos/modules/services/x11/window-managers/qtile.nix

26 lines
447 B
Nix
Raw Normal View History

{ 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 ];
};
}