Merge pull request #24651 from edanaher/add-fvwm-window-manager

fvwm module: init; now fvwm can be used as an xserver.windowManager
This commit is contained in:
Alexey Shmalko 2017-04-06 16:29:28 +03:00 committed by GitHub
commit b8e71f2969
2 changed files with 42 additions and 0 deletions

View File

@ -15,6 +15,7 @@ in
./dwm.nix
./exwm.nix
./fluxbox.nix
./fvwm.nix
./herbstluftwm.nix
./i3.nix
./jwm.nix

View File

@ -0,0 +1,41 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.windowManager.fvwm;
fvwm = pkgs.fvwm.override { gestures = cfg.gestures; };
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 ];
};
}