Merge pull request #9047 from kamilchm/qtile-wm
xserver: qtile as windowManager
This commit is contained in:
commit
5686921dd5
|
@ -25,6 +25,7 @@ in
|
||||||
./windowmaker.nix
|
./windowmaker.nix
|
||||||
./wmii.nix
|
./wmii.nix
|
||||||
./xmonad.nix
|
./xmonad.nix
|
||||||
|
./qtile.nix
|
||||||
./none.nix ];
|
./none.nix ];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue