mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
fvwm module: init; now fvwm can be used as an xserver.windowManager
This commit is contained in:
parent
65593e64c4
commit
7a38b0858f
2 changed files with 42 additions and 0 deletions
|
@ -14,6 +14,7 @@ in
|
||||||
./dwm.nix
|
./dwm.nix
|
||||||
./exwm.nix
|
./exwm.nix
|
||||||
./fluxbox.nix
|
./fluxbox.nix
|
||||||
|
./fvwm.nix
|
||||||
./herbstluftwm.nix
|
./herbstluftwm.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
./jwm.nix
|
./jwm.nix
|
||||||
|
|
41
nixos/modules/services/x11/window-managers/fvwm.nix
Normal file
41
nixos/modules/services/x11/window-managers/fvwm.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue