mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
26 lines
490 B
Nix
26 lines
490 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.services.xserver.windowManager.pekwm;
|
||
|
in
|
||
|
{
|
||
|
###### interface
|
||
|
options = {
|
||
|
services.xserver.windowManager.pekwm.enable = mkEnableOption "pekwm";
|
||
|
};
|
||
|
|
||
|
###### implementation
|
||
|
config = mkIf cfg.enable {
|
||
|
services.xserver.windowManager.session = singleton {
|
||
|
name = "pekwm";
|
||
|
start = ''
|
||
|
${pkgs.pekwm}/bin/pekwm &
|
||
|
waitPID=$!
|
||
|
'';
|
||
|
};
|
||
|
environment.systemPackages = [ pkgs.pekwm ];
|
||
|
};
|
||
|
}
|