Skip to content

Commit

Permalink
[fish] Move configuration to a separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
sestrella committed Jan 2, 2025
1 parent d004699 commit de1b893
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
14 changes: 2 additions & 12 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
imports = [
./home/alacritty
./home/bat
./home/git
./home/fish
./home/ghostty
./home/git
./home/helix
./home/home-manager
./home/neovim
Expand Down Expand Up @@ -83,17 +84,6 @@
settings.color.when = "never";
};

programs.fish = {
enable = true;
functions.fish_greeting = "";
shellInit = ''
fish_add_path /usr/local/bin
# https://github.com/Homebrew/brew/blob/master/Library/Homebrew/cmd/shellenv.sh
eval (/opt/homebrew/bin/brew shellenv)
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish
'';
};

programs.starship.enable = true;

programs.zoxide.enable = true;
Expand Down
14 changes: 14 additions & 0 deletions home/fish/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ ... }:

{
programs.fish = {
enable = true;
functions.fish_greeting = "";
shellInit = ''
fish_add_path /usr/local/bin
# https://github.com/Homebrew/brew/blob/master/Library/Homebrew/cmd/shellenv.sh
eval (/opt/homebrew/bin/brew shellenv)
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish
'';
};
}

0 comments on commit de1b893

Please sign in to comment.