summary refs log blame commit diff
path: root/nixos/modules/services/x11/window-managers/pekwm.nix
blob: 8818f568647a4fd7a077ead918dbb7e5953aa37a (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                    
                                                                                     













                                                        
{ config, lib, pkgs, ... }:

with lib;

let
  cfg = config.services.xserver.windowManager.pekwm;
in
{
  ###### interface
  options = {
    services.xserver.windowManager.pekwm.enable = mkEnableOption (lib.mdDoc "pekwm");
  };

  ###### implementation
  config = mkIf cfg.enable {
    services.xserver.windowManager.session = singleton {
      name = "pekwm";
      start = ''
        ${pkgs.pekwm}/bin/pekwm &
        waitPID=$!
      '';
    };
    environment.systemPackages = [ pkgs.pekwm ];
  };
}