feat(wezterm): initial module

This commit is contained in:
Kat Inskip 2022-12-04 19:06:58 +01:00
parent 269d3929f6
commit e0d9408a81
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 23 additions and 0 deletions

20
home/modules/wezterm.nix Normal file
View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
in {
options.programs.wezterm = {
enable = mkEnableOption "the wezterm terminal emulator";
};
config = mkIf config.programs.wezterm.enable {
home.packages = [
pkgs.wezterm
];
xdg.configFile."wezterm/wezterm.lua".text = ''
local = wezterm = require 'wezterm'
return {
check_for_updates = false,
enable_tab_bar = true
}
'';
};
}

3
home/profiles/gui.nix Normal file
View file

@ -0,0 +1,3 @@
{ config, ... }: {
programs.wezterm.enable = true;
}