2023-01-31 09:38:11 +01:00
|
|
|
{
|
2023-02-10 07:46:37 +01:00
|
|
|
config,
|
|
|
|
flakePath,
|
2023-11-28 12:21:17 +01:00
|
|
|
lib,
|
2023-11-08 11:54:01 +01:00
|
|
|
pkgs,
|
2023-02-10 07:46:37 +01:00
|
|
|
...
|
2024-05-07 18:20:52 +02:00
|
|
|
}:
|
|
|
|
let
|
2023-11-08 11:54:01 +01:00
|
|
|
mkSymlink = path: config.lib.file.mkOutOfStoreSymlink "${flakePath}/home/apps/wezterm/${path}";
|
2024-05-07 18:20:52 +02:00
|
|
|
srcs = pkgs.callPackage ../../_sources/generated.nix { };
|
|
|
|
in
|
|
|
|
{
|
2023-11-28 12:21:17 +01:00
|
|
|
# use the GUI version & config when we have a gui, else just get terminfo
|
|
|
|
config = lib.mkMerge [
|
2024-05-07 18:20:52 +02:00
|
|
|
(lib.mkIf (!config.isGraphical) { home.packages = [ pkgs.wezterm.terminfo ]; })
|
2023-11-08 11:54:01 +01:00
|
|
|
|
2023-11-28 12:21:17 +01:00
|
|
|
(lib.mkIf config.isGraphical {
|
2024-04-27 02:07:37 +02:00
|
|
|
programs.wezterm.enable = true;
|
2023-05-15 01:01:10 +02:00
|
|
|
|
2023-11-28 12:21:17 +01:00
|
|
|
xdg.configFile = {
|
|
|
|
"wezterm/wezterm.lua".source = mkSymlink "wezterm.lua";
|
2024-06-08 18:11:28 +02:00
|
|
|
"wezterm/config".source = mkSymlink "config";
|
2024-02-15 18:49:22 +01:00
|
|
|
"wezterm/bar".source = srcs.nekowinston-wezterm-bar.src;
|
2024-05-30 20:02:02 +02:00
|
|
|
"wezterm/milspec".source = srcs.milspec.src + "/extras/wezterm";
|
2023-11-28 12:21:17 +01:00
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2023-01-31 09:38:11 +01:00
|
|
|
}
|