mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
feat(wezterm): initial module
This commit is contained in:
parent
269d3929f6
commit
e0d9408a81
2 changed files with 23 additions and 0 deletions
20
home/modules/wezterm.nix
Normal file
20
home/modules/wezterm.nix
Normal 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
3
home/profiles/gui.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{ config, ... }: {
|
||||
programs.wezterm.enable = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue