0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-21 01:20:34 +03:00
nixpkgs/nixos/modules/services/x11/window-managers/fvwm3.nix

39 lines
549 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2022-07-28 01:43:28 -03:00
with lib;
let
cfg = config.services.xserver.windowManager.fvwm3;
inherit (pkgs) fvwm3;
in
{
###### interface
options = {
services.xserver.windowManager.fvwm3 = {
enable = mkEnableOption "Fvwm3 window manager";
2022-07-28 01:43:28 -03:00
};
};
###### implementation
config = mkIf cfg.enable {
services.xserver.windowManager.session = singleton {
name = "fvwm3";
start = ''
${fvwm3}/bin/fvwm3 &
waitPID=$!
'';
};
2022-07-28 01:43:28 -03:00
environment.systemPackages = [ fvwm3 ];
};
}