2023-12-26 14:48:53 -06:00
|
|
|
{
|
2024-02-21 01:45:26 -06:00
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
|
|
|
|
home = {
|
|
|
|
username = "jahanson";
|
|
|
|
homeDirectory = "/home/jahanson";
|
2024-03-15 14:09:37 -05:00
|
|
|
stateVersion = "23.11";
|
|
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
# it provides the command `nom` works just like `nix`
|
|
|
|
# with more details log output
|
|
|
|
nix-output-monitor
|
|
|
|
];
|
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-04-08 19:44:17 -05:00
|
|
|
|
|
|
|
# nvd - nix visual diff
|
2024-04-09 05:17:05 -05:00
|
|
|
nvdiff = "nixos-rebuild build $argv && nvd diff /run/current-system result";
|
2023-12-26 14:48:53 -06:00
|
|
|
};
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.home-manager.enable = true;
|
2024-02-21 01:45:26 -06:00
|
|
|
}
|