2023-12-26 14:48:53 -06:00
|
|
|
{
|
2024-02-21 01:45:26 -06:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
|
|
|
|
home = {
|
|
|
|
username = "jahanson";
|
|
|
|
homeDirectory = "/home/jahanson";
|
2023-12-26 14:48:53 -06:00
|
|
|
};
|
|
|
|
|
2024-03-10 22:24:59 -05:00
|
|
|
# basic configuration of git, please change to your own
|
2023-12-26 14:48:53 -06:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userName = "Joseph Hanson";
|
|
|
|
userEmail = "joe@veri.dev";
|
|
|
|
};
|
2024-02-10 12:35:31 -06:00
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
# Fish configuration
|
2023-12-26 14:48:53 -06:00
|
|
|
programs.fish = {
|
|
|
|
enable = true;
|
|
|
|
shellAliases = {
|
|
|
|
# lsd
|
|
|
|
ls = "lsd";
|
|
|
|
ll = "lsd -l";
|
|
|
|
la = "lsd -a";
|
|
|
|
lt = "lsd --tree";
|
|
|
|
lla = "lsd -la";
|
|
|
|
|
2024-02-21 11:45:31 -06:00
|
|
|
# lazydocker --> lazypodman
|
2024-02-21 11:57:11 -06:00
|
|
|
lazypodman="sudo DOCKER_HOST=unix:///run/podman/podman.sock lazydocker";
|
2024-02-21 11:45:31 -06:00
|
|
|
|
2023-12-26 14:48:53 -06:00
|
|
|
# other
|
|
|
|
df = "df -h";
|
|
|
|
du = "du -h";
|
|
|
|
};
|
2024-02-21 01:45:26 -06:00
|
|
|
# rtx hook-env | source
|
|
|
|
# rtx activate fish | source
|
2023-12-26 16:47:00 -06:00
|
|
|
shellInit = ''
|
2023-12-27 08:47:51 -06:00
|
|
|
direnv hook fish | source
|
2023-12-30 11:17:41 -06:00
|
|
|
set -gx PATH $PATH $HOME/.krew/bin
|
2023-12-26 16:47:00 -06:00
|
|
|
'';
|
2024-03-10 22:24:59 -05:00
|
|
|
interactiveShellInit = ''
|
|
|
|
atuin init fish | source
|
|
|
|
'';
|
2023-12-26 14:48:53 -06:00
|
|
|
functions = {
|
|
|
|
fish_greeting = {
|
|
|
|
description = "Set the fish greeting";
|
2024-02-23 13:13:11 -06:00
|
|
|
body = "fastfetch";
|
2023-12-26 14:48:53 -06:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-21 01:45:26 -06:00
|
|
|
# Packages that should be installed to the user profile.
|
2023-12-26 14:48:53 -06:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# here is some command line tools I use frequently
|
|
|
|
# feel free to add your own or remove some of them
|
|
|
|
|
|
|
|
# nix related
|
|
|
|
#
|
|
|
|
# it provides the command `nom` works just like `nix`
|
|
|
|
# with more details log output
|
|
|
|
nix-output-monitor
|
|
|
|
];
|
|
|
|
|
|
|
|
home.stateVersion = "23.11";
|
|
|
|
programs.home-manager.enable = true;
|
2024-02-21 01:45:26 -06:00
|
|
|
}
|