consolidated script documentation into a single md file

wrote documentation on terminal sound effects

added a sound effect for `invoke`

added the function `build-drv`, which is a wrapper for nix-build that
puts the output nix store path to the derivation into an environment
variable instead of symlinking it in the current working directory
This commit is contained in:
2024-11-16 23:40:05 -05:00
parent 11824164b8
commit da0b2245c7
13 changed files with 264 additions and 237 deletions

View File

@@ -44,6 +44,7 @@ in {
config = lib.mkIf config.movOpts.envConfig.userPkgs.enable {
home.packages = with pkgs; [
nemo
feh
yubikey-manager
yubikey-personalization
gtk3

View File

@@ -7,7 +7,7 @@
config = lib.mkIf config.movOpts.envConfig.zshConfig.envVariables.enable {
programs.zsh = {
sessionVariables = {
SOUNDS_ENABLED = "1";
SOUNDS_ENABLED = "true";
EDITOR = "nvim";
SUDO_EDITOR = "nvim";
VISUAL = "nvim";

View File

@@ -18,6 +18,14 @@
runbg aplay "$1"
fi
}
build-drv() { # Put the derivation path in $RESULT instead of making a 'result' symlink
RESULT=$(nix-build "$@" --no-link)
if [ -z "$RESULT" ]; then
return 1
fi
export RESULT
echo "\$RESULT = $RESULT"
}
ssh() { # reverts ssh theme upon returning
command ssh "$@"
kitty_ssh_theme
@@ -149,8 +157,6 @@
{
eval "$(starship init zsh)"
}
unalias ls
clear
playshellsound ${self}/assets/sound/sh-source.wav
[ ! -f $FLAKEPATH/flake.nix ] && echo "WARNING: flake.nix not found at \$FLAKEPATH. Shell aliases for editing config files won't work correctly!" && echo "Edit the FLAKEPATH session variable in zshell.nix to point to the path where you saved the system configuration flake."
'';