Skip to content

Commit

Permalink
feat(nix): add darwin wezterm module
Browse files Browse the repository at this point in the history
  • Loading branch information
sbulav committed Feb 20, 2024
1 parent e112e5d commit d320470
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 0 additions & 2 deletions nix/homes/aarch64-darwin/sab@mbp13/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ with lib.custom; {
};

cli-apps = {
# zsh = enabled;
# tmux = enabled;
home-manager = enabled;
atuin = enabled;
neovim = enabled;
Expand Down
2 changes: 1 addition & 1 deletion nix/modules/darwin/desktop/addons/skhd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ in {
ctrl + shift - d : yabai -m space --destroy
# Applications
alt - x : /Users/sab/.nix-profile/bin/kitty
alt - x : /Applications/Nix\ Apps/WezTerm.app/wezterm
ctrl + alt - b: /Applications/Firefox.App/Contents/MacOS/firefox
# -- Starting/Stopping/Restarting Yabai --
Expand Down
22 changes: 22 additions & 0 deletions nix/modules/darwin/desktop/addons/wezterm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
inputs @ {
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.custom.desktop.addons.wezterm;
in {
options.custom.desktop.addons.wezterm = with types; {
enable = mkBoolOpt false "Whether or not to enable wezterm.";
};

config = mkIf cfg.enable {
# System package required as program via home-manager don't appear in Apps
environment.systemPackages = with pkgs; [
wezterm
];
};
}
1 change: 1 addition & 0 deletions nix/systems/aarch64-darwin/mbp13/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ with lib.custom; {
};

desktop.yabai = enabled;
desktop.addons.wezterm = enabled;
};

# suites.common.enable = true; # Enables the basics, like audio, networking, ssh, etc.
Expand Down

0 comments on commit d320470

Please sign in to comment.