2023-02-21 22:31:38 +01:00
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.reo101.wezterm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
];
|
|
|
|
|
|
|
|
options =
|
|
|
|
{
|
|
|
|
reo101.wezterm = {
|
|
|
|
enable = mkEnableOption "reo101 wezterm setup";
|
|
|
|
extraConfig = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
description = "Extra zsh config";
|
|
|
|
default = ''
|
2023-03-13 17:18:03 +01:00
|
|
|
'';
|
2023-02-21 22:31:38 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config =
|
|
|
|
mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs;
|
|
|
|
builtins.concatLists [
|
|
|
|
[
|
|
|
|
wezterm
|
|
|
|
(nerdfonts.override { fonts = [ "FiraCode" ]; })
|
|
|
|
]
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.wezterm = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = builtins.concatStringsSep "\n" [
|
|
|
|
(builtins.readFile ./wezterm.lua)
|
|
|
|
cfg.extraConfig
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = with lib.maintainers; [ reo101 ];
|
|
|
|
};
|
|
|
|
}
|