fvwm3: nixos module

This commit is contained in:
AndersonTorres 2022-07-28 01:43:28 -03:00
parent cd43f8b8bd
commit bef8e4df1d
2 changed files with 36 additions and 0 deletions

View file

@ -20,6 +20,7 @@ in
./exwm.nix
./fluxbox.nix
./fvwm2.nix
./fvwm3.nix
./herbstluftwm.nix
./i3.nix
./jwm.nix

View file

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