This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/user/configs/fish/default.nix

57 lines
1.6 KiB
Nix
Raw Normal View History

2023-05-26 02:42:33 +01:00
{ config, pkgs, inputs, ... }:
2023-05-15 21:06:28 +01:00
{
programs.exa = {
enable = true;
enableAliases = true;
2022-08-07 16:37:11 +01:00
};
2023-05-15 21:06:28 +01:00
programs.fish = {
enable = true;
2023-05-26 02:42:33 +01:00
2023-05-15 21:06:28 +01:00
plugins = [
2023-05-26 02:42:33 +01:00
{ name = "gruvbox-theme"; src = inputs.fish-plugin-gruvbox-theme; }
{ name = "bobthefish"; src = inputs.fish-plugin-bobthefish; }
2023-05-15 21:06:28 +01:00
];
interactiveShellInit = ''
2023-05-26 02:42:33 +01:00
theme_gruvbox dark medium
2023-05-15 21:06:28 +01:00
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
2023-05-26 02:42:33 +01:00
set -g theme_color_scheme gruvbox
set -g theme_nerd_fonts yes
set -g theme_display_git_default_branch yes
set -g theme_git_default_branches master main
'';
2023-05-15 21:06:28 +01:00
functions = {
fish_greeting = "";
ec = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
nvim "+Telescope find_files"
popd
'';
nor = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
doas nixos-rebuild switch --flake .#
popd &> /dev/null
'';
nou = ''
pushd . &> /dev/null
cd "${config.home.homeDirectory}/.dotfiles"
2023-05-21 21:21:25 +01:00
nix flake update --commit-lock-file
2023-05-15 21:06:28 +01:00
doas nixos-rebuild switch --upgrade --flake .#
popd &> /dev/null
'';
};
shellAliases = {
2023-05-21 21:21:25 +01:00
nf = "${pkgs.neofetch}/bin/neofetch";
e = "nvim";
2023-05-15 21:06:28 +01:00
};
2022-08-07 16:37:11 +01:00
};
}