11 cfg = config.services.xserver.windowManager.mlvwm;
16 options.services.xserver.windowManager.mlvwm = {
17 enable = mkEnableOption "Macintosh-like Virtual Window Manager";
19 configFile = mkOption {
21 type = with types; nullOr path;
23 Path to the mlvwm configuration file.
24 If left at the default value, $HOME/.mlvwmrc will be used.
29 config = mkIf cfg.enable {
31 services.xserver.windowManager.session = [
35 ${pkgs.mlvwm}/bin/mlvwm ${optionalString (cfg.configFile != null) "-f /etc/mlvwm/mlvwmrc"} &
41 environment.etc."mlvwm/mlvwmrc" = mkIf (cfg.configFile != null) {
42 source = cfg.configFile;
45 environment.systemPackages = [ pkgs.mlvwm ];