34 lines
765 B
Nix
34 lines
765 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.profile.programs.wezterm;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
wayland.windowManager.hyprland.settings.bind = [
|
|
"$mod, S, exec, wezterm ssh homeserver@vpn.tigor.web.id"
|
|
];
|
|
|
|
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;
|
|
};
|
|
};
|
|
}
|