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

64 lines
1.5 KiB
Nix
Raw Normal View History

2022-10-03 23:21:40 +01:00
{ config, pkgs, inputs, ... }: {
2022-08-07 16:37:11 +01:00
programs.exa = {
enable = true;
enableAliases = true;
};
programs.fish = {
enable = true;
2022-10-03 23:21:40 +01:00
plugins = [
{
name = "bobthefish";
src = inputs.bobthefish;
}
];
2022-08-07 16:37:11 +01:00
interactiveShellInit = ''
${pkgs.any-nix-shell}/bin/any-nix-shell fish --info-right | source
2022-11-14 11:58:04 +00: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
2022-08-07 16:37:11 +01:00
'';
2022-12-16 08:10:28 +00:00
2022-12-27 09:40:36 +00:00
# loginShellInit = ''
# if test (tty) = "/dev/tty1"
# ${pkgs.sway}/bin/sway &> ~/.sway.log
# end
#'';
2022-12-16 08:10:28 +00:00
2022-08-07 16:37:11 +01:00
functions = {
fish_greeting = "";
ec = ''
2023-03-24 01:43:20 +00:00
pushd . &> /dev/null
2023-03-19 21:35:09 +00:00
cd "${config.home.homeDirectory}/.dotfiles"
2023-05-14 10:23:49 +01:00
nvim "+Telescope find_files"
2023-03-24 01:43:20 +00:00
popd
2022-08-07 16:37:11 +01:00
'';
2022-08-07 20:02:21 +01:00
nor = ''
2023-03-24 01:43:20 +00:00
pushd . &> /dev/null
2022-08-07 20:02:21 +01:00
cd "${config.home.homeDirectory}/.dotfiles"
2023-05-10 13:37:18 +01:00
doas nixos-rebuild switch --flake .# --impure
2022-08-07 20:02:21 +01:00
popd &> /dev/null
'';
nou = ''
2023-03-24 01:43:20 +00:00
pushd . &> /dev/null
2022-08-07 20:02:21 +01:00
cd "${config.home.homeDirectory}/.dotfiles"
2023-04-12 23:27:05 +01:00
nix flake lock --commit-lock-file --update-input nixpkgs --update-input home-manager --update-input hyprland --update-input chaotic-nyx
2023-05-10 13:37:18 +01:00
doas nixos-rebuild switch --upgrade --flake .# --impure
2022-08-07 20:02:21 +01:00
popd &> /dev/null
'';
2022-08-07 16:37:11 +01:00
};
shellAliases = {
nf = "${pkgs.pfetch}/bin/pfetch";
2023-03-19 21:35:09 +00:00
e = "${pkgs.neovim}/bin/nvim";
2022-08-07 16:37:11 +01:00
};
};
}