feat (home/shell): update alias

This commit is contained in:
Henri Saudubray 2025-12-26 12:15:12 +01:00
parent c1bdf5b7f0
commit 6bb5b16bd9
6 changed files with 2 additions and 1 deletions

100
home/home.nix Normal file
View file

@ -0,0 +1,100 @@
{ config, pkgs, ... }:
{
home = {
username = "hms";
homeDirectory = "/home/hms";
packages = with pkgs; [
# Utilities
neofetch
zip
xz
unzip
ripgrep
just
tealdeer
zoxide
# Applications
blackbox-terminal
zotero
zulip
discord
signal-desktop
# sgt-puzzles
gapless
# Development
opam
tinymist
nixfmt-rfc-style
nil
texliveFull
];
shell.enableBashIntegration = true;
shellAliases = {
":q" = "exit";
"h" = "hx";
"o" = "xdg-open";
"update" = "sudo nixos-rebuild switch --flake ~/dev/nixos";
};
stateVersion = "25.11";
};
programs = {
home-manager.enable = true;
helix = {
enable = true;
defaultEditor = true;
settings = {
theme = "adwaita-dark";
editor = {
lsp.display-messages = true;
inline-diagnostics.cursor-line = "info";
rulers = [ 81 ];
gutters.layout = [ "diagnostics" ];
};
keys.insert.j.k = "normal_mode";
};
};
bat.enable = true;
git = {
enable = true;
settings = {
user = {
email = "henri.saudubray@proton.me";
name = "Henri Saudubray";
};
init.defaultBranch = "main";
};
signing.format = "openpgp";
};
bash = {
enable = true;
bashrcExtra = ''
export PS1=" \W \[\e[33m\]λ\[\e[0m\] "
'';
};
gpg.enable = true;
zoxide = {
enable = true;
enableBashIntegration = true;
options = [ "--cmd cd" ];
};
};
xdg.userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/dsk";
documents = "${config.home.homeDirectory}/doc";
download = "${config.home.homeDirectory}/dwn";
music = "${config.home.homeDirectory}/aud";
pictures = "${config.home.homeDirectory}/img";
publicShare = "${config.home.homeDirectory}/pub";
templates = "${config.home.homeDirectory}/tpl";
videos = "${config.home.homeDirectory}/vid";
};
}