1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 15:39:46 +03:00
nixpkgs/nixos/modules/services/x11/window-managers/qtile.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
770 B
Nix
Raw Normal View History

2015-07-30 07:31:53 +02:00
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.qtile;
in
{
2022-04-05 10:44:03 -07:00
options.services.xserver.windowManager.qtile = {
enable = mkEnableOption "qtile";
package = mkPackageOption pkgs "qtile" { };
2015-07-30 07:31:53 +02:00
};
config = mkIf cfg.enable {
services.xserver.windowManager.session = [{
name = "qtile";
start = ''
2022-04-05 10:44:03 -07:00
${cfg.package}/bin/qtile start &
2015-07-30 07:31:53 +02:00
waitPID=$!
'';
}];
environment.systemPackages = [
# pkgs.qtile is currently a buildenv of qtile and its dependencies.
# For userland commands, we want the underlying package so that
# packages such as python don't bleed into userland and overwrite intended behavior.
2022-04-05 10:44:03 -07:00
(cfg.package.unwrapped or cfg.package)
];
2015-07-30 07:31:53 +02:00
};
}