b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
35 lines
580 B
Nix
35 lines
580 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.xserver.windowManager.fvwm3;
|
|
inherit (pkgs) fvwm3;
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
|
services.xserver.windowManager.fvwm3 = {
|
|
enable = mkEnableOption (lib.mdDoc "Fvwm3 window manager");
|
|
};
|
|
};
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
services.xserver.windowManager.session = singleton
|
|
{ name = "fvwm3";
|
|
start =
|
|
''
|
|
${fvwm3}/bin/fvwm3 &
|
|
waitPID=$!
|
|
'';
|
|
};
|
|
|
|
environment.systemPackages = [ fvwm3 ];
|
|
};
|
|
}
|