11 cfg = config.services.xserver.windowManager.herbstluftwm;
16 services.xserver.windowManager.herbstluftwm = {
17 enable = mkEnableOption "herbstluftwm";
19 package = mkPackageOption pkgs "herbstluftwm" { };
21 configFile = mkOption {
23 type = with types; nullOr path;
25 Path to the herbstluftwm configuration file. If left at the
26 default value, $XDG_CONFIG_HOME/herbstluftwm/autostart will
33 config = mkIf cfg.enable {
34 services.xserver.windowManager.session = singleton {
35 name = "herbstluftwm";
38 configFileClause = optionalString (cfg.configFile != null) ''-c "${cfg.configFile}"'';
41 ${cfg.package}/bin/herbstluftwm ${configFileClause} &
45 environment.systemPackages = [ cfg.package ];