Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
raikusy committed Nov 26, 2024
1 parent 803ae3e commit 24826ab
Show file tree
Hide file tree
Showing 5 changed files with 149 additions and 73 deletions.
Binary file modified .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
# Nix
if test -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish'
source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish'
# following is single user
# source '/nix/var/nix/profiles/default/etc/profile.d/nix.fish'
end
# End Nix

################### Nix
# Essential workaround for clobbered `$PATH` with nix-darwin.
# Without this, both Nix and Homebrew paths are forced to the end of $PATH.
# <https://github.com/LnL7/nix-darwin/issues/122#issuecomment-1345383219>
# <https://github.com/LnL7/nix-darwin/issues/122#issuecomment-1030877541>
#
# A previous version of this snippet also included:
# - /run/wrappers/bin
# - /etc/profiles/per-user/$USER/bin # mwb needed if useGlobalPkgs used.
#
if test (uname) = Darwin
fish_add_path --prepend --global \
$XDG_STATE_HOME/nix/profile/bin \
/etc/profiles/per-user/$USER/bin \
$HOME/.nix-profile/bin \
/run/current-system/sw/bin \
/nix/var/nix/profiles/default/bin
end

fh completion fish | source

fish_add_path --prepend --global /Applications/Windsurf.app/Contents/Resources/app/bin

# Bun aliases
abbr -a -- b bun
abbr -a -- ba 'bun add'
Expand Down Expand Up @@ -57,6 +88,5 @@ abbr -a -- :q exit
abbr -a -- :m micro
abbr -a -- :sf superfile
abbr -a -- :cr cursor

# Wezterm
abbr -a -- wt wezterm
abbr -a -- :wt wezterm
abbr -a -- :ws windsurf
8 changes: 6 additions & 2 deletions config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,15 @@ config.colors = {
config.native_macos_fullscreen_mode = true
config.pane_focus_follows_mouse = true

config.default_prog = { '/opt/homebrew/bin/fish', '-l' }
config.default_prog = { '/Users/raikusy/.nix-profile/bin/fish', '-l' }
config.launch_menu = {
{
label = 'fish',
args = { '/opt/homebrew/bin/fish', '-l' },
args = { '/Users/raikusy/.nix-profile/bin/fish', '-l' },
},
{
label = 'zsh',
args = { '/bin/zsh', '-l' },
},
{
label = 'bash',
Expand Down
60 changes: 30 additions & 30 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 80 additions & 38 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
VOLTA_HOME = "${config.home.homeDirectory}/.volta";
GEM_HOME = "${config.home.homeDirectory}/.gem";
DENO_INSTALL = "${config.home.homeDirectory}/.deno";
DOCKER_BUILDKIT = "1";
COMPOSE_DOCKER_CLI_BUILD = "1";
HOMEBREW_NO_ANALYTICS = "1";
COLORTERM = "truecolor";
TERM = "xterm-256color";
};

home.sessionPath = [
Expand All @@ -124,7 +129,10 @@
"${config.home.homeDirectory}/.deno/bin"
"${config.home.homeDirectory}/.bun/bin"
"${config.home.homeDirectory}/bin"
"${config.xdg.stateHome}/nix/profile/bin"
"/etc/profiles/per-user/${config.home.username}/bin"
"/run/current-system/sw/bin"
"/nix/var/nix/profiles/default/bin"
];

programs = {
Expand Down Expand Up @@ -165,8 +173,8 @@
};

# Add environment variables in a more organized way
interactiveShellInit = builtins.readFile "${config.home.sessionVariables.DOTFILES}/config/fish/conf.d/brew.fish" + builtins.readFile "${config.home.sessionVariables.DOTFILES}/config/fish/conf.d/fh.fish" + builtins.readFile "${config.home.sessionVariables.DOTFILES}/config/fish/conf.d/99-custom-abbr.fish";

# interactiveShellInit = builtins.readFile "${config.home.sessionVariables.DOTFILES}/config/fish/conf.d/99_custom_init.fish";
loginShellInit = builtins.readFile "${config.home.sessionVariables.DOTFILES}/config/fish/conf.d/99_custom_init.fish";
plugins = [
{
name = "osx";
Expand All @@ -178,32 +186,40 @@
};
}
{
name = "grc";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-grc";
rev = "master";
sha256 = "sha256-NQa12L0zlEz2EJjMDhWUhw5cz/zcFokjuCK5ZofTn+Q=";
};
}
{
name = "fisher";
src = pkgs.fetchFromGitHub {
owner = "jorgebucaran";
repo = "fisher";
rev = "master";
sha256 = "sha256-pR5RKU+zIb7CS0Y6vjx2QIZ8Iu/3ojRfAcAdjCOxl1U=";
};
}
{
name = "sudope";
src = pkgs.fetchFromGitHub {
owner = "oh-my-fish";
repo = "plugin-sudope";
rev = "master";
sha256 = "sha256-pD4rNuqg6TG22L9m8425CO2iqcYm8JaAEXIVa0H/v/U=";
};
name = "fishplugin-grc";
src = pkgs.fishPlugins.grc.src;
}
# {
# name = "grc";
# src = pkgs.fetchFromGitHub {
# owner = "oh-my-fish";
# repo = "plugin-grc";
# rev = "master";
# sha256 = "sha256-NQa12L0zlEz2EJjMDhWUhw5cz/zcFokjuCK5ZofTn+Q=";
# };
# }
# {
# name = "fisher";
# src = pkgs.fishPlugins.fisher.src;
# }
# {
# name = "fisher";
# src = pkgs.fetchFromGitHub {
# owner = "jorgebucaran";
# repo = "fisher";
# rev = "master";
# sha256 = "sha256-pR5RKU+zIb7CS0Y6vjx2QIZ8Iu/3ojRfAcAdjCOxl1U=";
# };
# }
# {
# name = "sudope";
# src = pkgs.fetchFromGitHub {
# owner = "oh-my-fish";
# repo = "plugin-sudope";
# rev = "master";
# sha256 = "sha256-pD4rNuqg6TG22L9m8425CO2iqcYm8JaAEXIVa0H/v/U=";
# };
# }
{
name = "replay.fish";
src = pkgs.fetchFromGitHub {
Expand All @@ -222,15 +238,15 @@
sha256 = "sha256-PuorwmaZAeG6aNWX4sUTBIE+NMdn1iWeea3rJ2RhqRQ=";
};
}
{
name = "projectdo";
src = pkgs.fetchFromGitHub {
owner = "paldepind";
repo = "projectdo";
rev = "master";
sha256 = "sha256-j8wR+s1cMVMcNYXcVxmSf14UuHsRNq112jrMmevN9Dg=";
};
}
# {
# name = "projectdo";
# src = pkgs.fetchFromGitHub {
# owner = "paldepind";
# repo = "projectdo";
# rev = "master";
# sha256 = "sha256-j8wR+s1cMVMcNYXcVxmSf14UuHsRNq112jrMmevN9Dg=";
# };
# }
{
name = "fish-abbreviation-tips";
src = pkgs.fetchFromGitHub {
Expand Down Expand Up @@ -348,9 +364,35 @@

tmux = {
enable = true;
shortcut = "a";
clock24 = true;
keyMode = "vi";
customPaneNavigationAndResize = true;
terminal = "screen-256color";
baseIndex = 1;
plugins = with pkgs.tmuxPlugins; [
sensible
yank
resurrect
continuum
{
plugin = dracula;
extraConfig = ''
set -g @dracula-show-battery false
set -g @dracula-show-powerline true
set -g @dracula-refresh-rate 10
'';
}
];
extraConfig = ''
# Enable mouse support
set -g mouse on
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# Automatically renumber windows
set -g renumber-windows on
'';
};

wezterm = {
Expand Down

0 comments on commit 24826ab

Please sign in to comment.