Skip to content

Commit

Permalink
refactor: Use home-manager for Kitty
Browse files Browse the repository at this point in the history
  • Loading branch information
edmundmiller committed Nov 20, 2023
1 parent ed04f73 commit 951f876
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ dynamic_background_opacity yes

include current-theme.conf

x11_hide_window_decorations yes
hide_window_decorations yes
12 changes: 11 additions & 1 deletion modules/desktop/term/kitty.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ in {
# kitty isn't supported over ssh, so revert to a known one
environment.shellAliases = {s = "kitten ssh";};

user.packages = with pkgs; [kitty];
home-manager.users.${config.user.name}.programs.kitty = {
enable = true;
settings = {
scrollback_lines = 10000;
enable_audio_bell = false;
update_check_interval = 0;
background_opacity = 0.97;
dynamic_background_opacity = true;
hide_window_decorations = true;
};
};
};
}
6 changes: 4 additions & 2 deletions modules/desktop/term/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ in {
options.modules.desktop.term.wezterm = {enable = mkBoolOpt false;};

config = mkIf cfg.enable {
user.packages = with pkgs; [unstable.wezterm];

home-manager.users.${config.user.name}.programs.wezterm = {
enable = true;
# default_prog = { "zsh", "--login", "-c", "tmux attach -t dev || tmux new -s dev" },
};
# TODO Waiting for config to stablize
# home.configFile = {
# "wezterm/wezterm.lua".source = "${configDir}/wezterm/wezterm.lua";
Expand Down

0 comments on commit 951f876

Please sign in to comment.