nixpkgs/nixos/modules/services/x11/window-managers/qtile.nix
2015-07-30 07:31:53 +02:00

26 lines
443 B
Nix

{ 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
waitPID=$!
'';
}];
environment.systemPackages = [ pkgs.qtile ];
};
}