nix-flakes/hosts/machine/kanade/home/config/shell.nix
2026-09-10 01:54:06 +09:00

35 lines
872 B
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ inputs, lib, ... }:
{
imports = [
"${inputs.self}/modules/home/fish.nix"
"${inputs.self}/modules/home/starship.nix"
];
programs.fish.shellAliases = {
rebuild = "sudo darwin-rebuild switch --flake .#kanade";
update = "nix flake update";
clean = "nix-collect-garbage -d";
};
programs.fish.interactiveShellInit = lib.mkAfter ''
set -gx ANDROID_HOME "$HOME/Library/Android/sdk"
if test -d "$ANDROID_HOME/ndk"
set -l ndk_versions "$ANDROID_HOME"/ndk/*
if test (count $ndk_versions) -gt 0
set -gx NDK_HOME $ndk_versions[-1]
end
end
set -gx SSH_AUTH_SOCK /Users/imnyang/.ssh/proton-pass-agent.sock
'';
programs.starship = {
settings = {
format = "🎼 $directory:$character";
character = {
success_symbol = " 💕";
error_symbol = " ";
};
};
};
}