84 lines
2.0 KiB
Nix
84 lines
2.0 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
outputs,
|
|
...
|
|
}:
|
|
{
|
|
home.stateVersion = "24.05";
|
|
|
|
programs.bash = {
|
|
enable = true;
|
|
historyFile = "\${XDG_STATE_HOME}/bash/history";
|
|
historyControl = [
|
|
"erasedups"
|
|
"ignorespace"
|
|
"ignoredups"
|
|
];
|
|
shellAliases = {
|
|
cp = "cp -i";
|
|
mv = "mv -i";
|
|
mkdir = "mkdir -p";
|
|
".." = "cd ..";
|
|
"..." = "cd ../..";
|
|
".3" = "cd ../../..";
|
|
".4" = "cd ../../../..";
|
|
".5" = "cd ../../../../..";
|
|
c = "cat";
|
|
sc = "systemctl --user";
|
|
jc = "journalctl --user -xefu";
|
|
open-gallery = ''
|
|
cd /mnt/pool/scrapping/JawZ/gallery-dl &&
|
|
xdg-open "$(fd . ./ Husbands -tdirectory -d 1 | fzf -i)"'';
|
|
};
|
|
enableVteIntegration = true;
|
|
initExtra = ''
|
|
$HOME/.local/bin/pokemon-colorscripts -r --no-title
|
|
|
|
export command_timeout=60
|
|
|
|
nixos-reload () {
|
|
NIXOSDIR=/home/jawz/Development/NixOS
|
|
# nix-store --add-fixed sha256 \
|
|
# $NIXOSDIR/PureRef-1.11.1_x64.Appimage
|
|
fd --full-path $NIXOSDIR -e nix -x nixfmt \;
|
|
sudo nixos-rebuild switch \
|
|
--flake "$NIXOSDIR/#$HOSTNAME" \
|
|
| nom
|
|
}
|
|
'';
|
|
};
|
|
xdg = {
|
|
enable = true;
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = false;
|
|
desktop = "${config.home.homeDirectory}";
|
|
documents = "${config.home.homeDirectory}/Documents";
|
|
download = "${config.home.homeDirectory}/Downloads";
|
|
music = "${config.home.homeDirectory}/Music";
|
|
pictures = "${config.home.homeDirectory}/Pictures";
|
|
templates = "${config.xdg.dataHome}/Templates";
|
|
videos = "${config.home.homeDirectory}/Videos";
|
|
};
|
|
configFile = {
|
|
"wgetrc".source = ../dotfiles/wget/wgetrc;
|
|
};
|
|
};
|
|
programs = {
|
|
helix.enable = true;
|
|
direnv = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
nix-direnv.enable = true;
|
|
};
|
|
git = {
|
|
enable = true;
|
|
userName = "Danilo Reyes";
|
|
userEmail = "CaptainJawZ@protonmail.com";
|
|
};
|
|
};
|
|
}
|