1 { config, lib, pkgs, ... }:
5 let cfg = config.services.xserver.windowManager.mlvwm;
10 options.services.xserver.windowManager.mlvwm = {
11 enable = mkEnableOption "Macintosh-like Virtual Window Manager";
13 configFile = mkOption {
15 type = with types; nullOr path;
17 Path to the mlvwm configuration file.
18 If left at the default value, $HOME/.mlvwmrc will be used.
23 config = mkIf cfg.enable {
25 services.xserver.windowManager.session = [{
28 ${pkgs.mlvwm}/bin/mlvwm ${optionalString (cfg.configFile != null)
29 "-f /etc/mlvwm/mlvwmrc"
35 environment.etc."mlvwm/mlvwmrc" = mkIf (cfg.configFile != null) {
36 source = cfg.configFile;
39 environment.systemPackages = [ pkgs.mlvwm ];