feat(wezterm): add module for wezterm
Enable it for `homix`
This commit is contained in:
parent
0fac8b394e
commit
bd2df72ebc
7 changed files with 217 additions and 30 deletions
47
modules/home-manager/reo101-wezterm/default.nix
Normal file
47
modules/home-manager/reo101-wezterm/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ 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 = ''
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue