2022-08-12 12:06:08 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.fvwm3;
|
|
|
|
inherit (pkgs) fvwm3;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
services.xserver.windowManager.fvwm3 = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = mkEnableOption "Fvwm3 window manager";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton
|
|
|
|
{ name = "fvwm3";
|
|
|
|
start =
|
|
|
|
''
|
|
|
|
${fvwm3}/bin/fvwm3 &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = [ fvwm3 ];
|
|
|
|
};
|
|
|
|
}
|