This repository has been archived on 2024-07-15. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config/home-manager/gandalf.nix

62 lines
1.2 KiB
Nix
Raw Normal View History

2023-12-26 14:48:53 -06:00
{
config,
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
# 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";
# lazydocker --> lazypodman
2024-02-21 11:57:11 -06:00
lazypodman="sudo DOCKER_HOST=unix:///run/podman/podman.sock lazydocker";
2023-12-26 14:48:53 -06:00
# other
df = "df -h";
du = "du -h";
};
# 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
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;
}