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
|
||||
./wmii.nix
|
||||
./xmonad.nix
|
||||
./qtile.nix
|
||||
./none.nix ];
|
||||
|
||||
options = {
|
||||
|
25
nixos/modules/services/x11/window-managers/qtile.nix
Normal file
25
nixos/modules/services/x11/window-managers/qtile.nix
Normal file
@ -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
Block a user