mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
25 lines
476 B
Nix
25 lines
476 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.xserver.windowManager.jwm;
|
|
in
|
|
{
|
|
###### interface
|
|
options = {
|
|
services.xserver.windowManager.jwm.enable = mkEnableOption "jwm";
|
|
};
|
|
|
|
###### implementation
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton {
|
|
name = "jwm";
|
|
start = ''
|
|
${pkgs.jwm}/bin/jwm &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
environment.systemPackages = [ pkgs.jwm ];
|
|
};
|
|
}
|