Skip to content

Commit

Permalink
add tailscale alias on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: David Wood <david@davidtw.co>
  • Loading branch information
davidtwco committed Sep 19, 2023
1 parent 9b7b47b commit 10f3732
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions home/hosts/macbook-pro-2023.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,28 @@ in
home.stateVersion = "23.05";

programs = {
fish.interactiveShellInit = ''
# Add Nix to the environment.
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
end
fish = {
interactiveShellInit = ''
# Add Nix to the environment.
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
end
# Add Homebrew environment variables - not currently managed by Nix.
if status --is-interactive
eval (/opt/homebrew/bin/brew shellenv)
end
# Add Homebrew environment variables - not currently managed by Nix.
if status --is-interactive
eval (/opt/homebrew/bin/brew shellenv)
end
# Integrate with iTerm2
source ${itermIntegration}
# Integrate with iTerm2
source ${itermIntegration}
# Set `SHELL` to current shell's path - iTerm2 doesn't set it.
set -gx SHELL (status fish-path)
'';
# Set `SHELL` to current shell's path - iTerm2 doesn't set it.
set -gx SHELL (status fish-path)
'';
shellAliases = {
"tailscale" = "/Applications/Tailscale.app/Contents/MacOS/Tailscale";
};
};

git = {
iniContent.gpg = {
Expand Down

0 comments on commit 10f3732

Please sign in to comment.