619d6dcc77
GitOrigin-RevId: 870959c7fb3a42af1863bed9e1756086a74eb649
25 lines
447 B
Nix
25 lines
447 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 start &
|
|
waitPID=$!
|
|
'';
|
|
}];
|
|
|
|
environment.systemPackages = [ pkgs.qtile ];
|
|
};
|
|
}
|