30 lines
641 B
Nix
30 lines
641 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.profile.programs.wezterm;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
programs.wezterm = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
enableBashIntegration = true;
|
|
|
|
extraConfig = /*lua*/ ''
|
|
-- take config from ./base_config.lua
|
|
local config = require('base_config')
|
|
|
|
-- and override settings for nixos specific things here.
|
|
config.window_background_opacity = ${toString cfg.config.window_background_opacity};
|
|
|
|
return config
|
|
'';
|
|
};
|
|
|
|
|
|
home.file.".config/wezterm" = {
|
|
source = ./.;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|