2024-03-17 22:25:47 -06:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
2024-03-17 22:54:19 -06:00
|
|
|
userName = "luci";
|
|
|
|
fullName = "Luci NAS";
|
|
|
|
email = "luci@fosscat.com";
|
2024-03-17 22:25:47 -06:00
|
|
|
in
|
|
|
|
{
|
2024-03-17 22:52:07 -06:00
|
|
|
home.username = userName;
|
|
|
|
home.homeDirectory = "/home/${userName}";
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
programs.home-manager.enable = true;
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
fonts.fontconfig.enable = true;
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
helix
|
|
|
|
jq
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
#
|
|
|
|
# Better Unix
|
|
|
|
#
|
|
|
|
bat
|
|
|
|
duf
|
|
|
|
fd
|
|
|
|
fzf
|
|
|
|
lsd
|
|
|
|
ripgrep
|
|
|
|
tre-command
|
|
|
|
gtop
|
|
|
|
htop
|
|
|
|
neofetch
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
# Normies
|
|
|
|
unzip
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
imv
|
|
|
|
mpv
|
|
|
|
ffmpeg
|
|
|
|
];
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
home.file."${config.xdg.configHome}" = {
|
|
|
|
source = ../../dotfiles;
|
|
|
|
recursive = true;
|
|
|
|
};
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
home.sessionVariables = {
|
|
|
|
EDITOR = "hx";
|
|
|
|
};
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
# Git setup
|
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
userEmail = email;
|
|
|
|
userName = fullName;
|
|
|
|
};
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
programs = {
|
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true; # see note on other shells below
|
|
|
|
nix-direnv.enable = true;
|
2024-03-17 22:25:47 -06:00
|
|
|
};
|
2024-03-17 22:52:07 -06:00
|
|
|
bash.enable = true; # see note on other shells below
|
|
|
|
};
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
# Zsh setup
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "git" ];
|
|
|
|
theme = "half-life";
|
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
eval "$(direnv hook zsh)"
|
2024-03-17 22:25:47 -06:00
|
|
|
|
2024-03-17 22:52:07 -06:00
|
|
|
alias ls="lsd"
|
|
|
|
alias l="lsd --almost-all --long"
|
|
|
|
alias llm="lsd --timesort --long"
|
|
|
|
alias lS="lsd --oneline --classic"
|
|
|
|
alias lt="lsd --tree --depth=2"
|
|
|
|
alias grep="rg"
|
|
|
|
'';
|
2024-03-17 22:25:47 -06:00
|
|
|
};
|
2024-03-17 22:52:07 -06:00
|
|
|
|
2024-03-17 22:25:47 -06:00
|
|
|
}
|