NixOS/home/programs/wezterm/default.nix

30 lines
641 B
Nix
Raw Normal View History

2024-06-12 18:09:56 +07:00
{ config, lib, ... }:
let
cfg = config.profile.programs.wezterm;
2024-06-12 18:09:56 +07:00
in
2024-06-12 09:54:11 +07:00
{
2024-06-12 18:09:56 +07:00
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
'';
2024-06-12 18:09:56 +07:00
};
2024-06-12 09:54:11 +07:00
2024-06-12 18:09:56 +07:00
home.file.".config/wezterm" = {
source = ./.;
recursive = true;
};
2024-06-12 09:54:11 +07:00
};
}