2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.fvwm;
|
2021-07-03 03:11:41 +00:00
|
|
|
fvwm = pkgs.fvwm.override { enableGestures = cfg.gestures; };
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager.fvwm = {
|
|
|
|
enable = mkEnableOption "Fvwm window manager";
|
|
|
|
|
|
|
|
gestures = mkOption {
|
|
|
|
default = false;
|
|
|
|
type = types.bool;
|
|
|
|
description = "Whether or not to enable libstroke for gesture support";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "fvwm";
|
|
|
|
start =
|
|
|
|
''
|
|
|
|
${fvwm}/bin/fvwm &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = [ fvwm ];
|
|
|
|
};
|
|
|
|
}
|