✨ feat(wezterm): Add Wezterm config
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Make release (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
Some checks are pending
CI / Format Nix files (push) Waiting to run
CI / Test Modules (push) Waiting to run
CI / Validate sources (push) Waiting to run
Release / Make release (push) Waiting to run
Release / Publish to Flake registries (push) Blocked by required conditions
Build & deploy website / Build site (push) Waiting to run
Build & deploy website / Deploy website (push) Blocked by required conditions
This config does require the user to format their configuration in a specific way: ```lua local config = wezterm.config_builder() -- config here... return config ``` Since this is the format that the official documentation uses in examples, most users probably follow suit. But worth pointing out regardless.
This commit is contained in:
parent
772d5a2bd1
commit
bda31cf1a7
1 changed files with 15 additions and 0 deletions
15
modules/home-manager/wezterm.nix
Normal file
15
modules/home-manager/wezterm.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.programs.wezterm.rose-pine;
|
||||
enable = cfg.enable && config.programs.wezterm.enable;
|
||||
in
|
||||
{
|
||||
options.programs.wezterm.rose-pine = lib.rp.mkRosePineOpt { name = "wezterm"; };
|
||||
|
||||
config.programs.wezterm.extraConfig = lib.mkIf enable ''
|
||||
local theme = wezterm.plugin.require('https://github.com/neapsix/wezterm').${cfg.flavor}
|
||||
|
||||
config.colors = theme.colors()
|
||||
config.window_frame = theme.window_frame()
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue