2015-07-30 07:31:53 +02:00
|
|
|
{ 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 = ''
|
2017-05-31 17:37:47 +02:00
|
|
|
${pkgs.qtile}/bin/qtile &
|
2015-07-30 07:31:53 +02:00
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
}];
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.qtile ];
|
|
|
|
};
|
|
|
|
}
|