Windowmaker: adding system service file, and a long description
Closes #4066
This commit is contained in:
committed by
Mateusz Kowalczyk
parent
4d5336316c
commit
c6f28f988c
@@ -0,0 +1,28 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.services.xserver.windowManager.windowmaker;
|
||||
in
|
||||
{
|
||||
###### interface
|
||||
options = {
|
||||
services.xserver.windowManager.windowmaker.enable = mkOption {
|
||||
default = false;
|
||||
description = "Enable the Windowmaker window manager.";
|
||||
};
|
||||
};
|
||||
|
||||
###### implementation
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver.windowManager.session = singleton {
|
||||
name = "windowmaker";
|
||||
start = ''
|
||||
${pkgs.windowmaker}/bin/wmaker &
|
||||
waitPID=$!
|
||||
'';
|
||||
};
|
||||
environment.systemPackages = [ pkgs.windowmaker ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user