Skip to content

Commit

Permalink
replace mkIf with optionalString to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
taranarmo committed Jan 5, 2025
1 parent 49cb841 commit 1091805
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/home-manager/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ in
extraConfig = ''
local catppuccin_plugin = "${sources.wezterm}/plugin/init.lua"
''
+ lib.mkIf cfg.apply (lib.mkBefore ''
+ lib.optionalString cfg.apply ''
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
dofile("${sources.wezterm}/plugin/init.lua").apply_to_config(config)
'');
'';
};
};
}

0 comments on commit 1091805

Please sign in to comment.