Files
nixos/home/baseline/shell.nix
T

96 lines
2.9 KiB
Nix
Raw Normal View History

2025-08-15 22:59:11 -05:00
{
config,
lib,
pkgs,
...
}:
2025-08-01 10:24:15 -05:00
{
2025-08-13 22:32:54 -05:00
home = {
sessionVariables = {
AWS_SHARED_CREDENTIALS_FILE = "/run/agenix/cache-credentials";
CARAPACE_BRIDGES = "zsh,bash";
2025-10-15 23:31:01 -05:00
EDITOR = lib.mkForce (lib.getExe config.programs.nixvim.build.package);
2025-08-13 22:32:54 -05:00
GOPATH = "${config.home.homeDirectory}/src/go";
GOBIN = "${config.home.homeDirectory}/src/bin";
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN = "1";
MAVEN_OPTS = " -Dmaven.wagon.http.ssl.insecure=true";
SWORD_PATH = "${config.home.homeDirectory}/.sword/";
#TIMEFORMAT = "%3Uu %3Ss %3lR %P%%";
VIRTUALENV_HOME = "${config.home.homeDirectory}/venv/";
};
shellAliases = {
nb = "nix build -L";
nixdu = "sudo nix-store --gc --print-roots | egrep -v \"^(/nix/var|/run/\\\\w+-system|\\\\{memory|/proc)\"";
nixtest = "nixpkgs-review rev HEAD";
nixup = "nix flake lock update";
nixcopy = "nix copy --to \"s3://binary-cache/?profile=default&endpoint=nas.home%3A9000&scheme=http\"";
2025-08-18 02:04:06 -05:00
r = "run0";
2025-08-13 22:32:54 -05:00
updateScript = "nix-shell maintainers/scripts/update.nix --argstr package";
2026-05-07 08:28:44 -05:00
p = "${lib.getExe pkgs.podman-tui}";
2025-08-13 22:32:54 -05:00
# General
k = "kubectl";
kn = "kubectl get nodes -o wide";
kp = "kubectl get pods -o wide";
2025-09-16 09:51:33 -05:00
s = "lazyssh";
2025-08-13 22:32:54 -05:00
win = "sudo virsh start win10";
2025-08-13 22:39:12 -05:00
yaml2js = "python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)'";
2025-08-13 22:32:54 -05:00
z = "zeditor .";
# Tailscale related ones
tsup = "sudo tailscale up";
tspub = "sudo tailscale up --exit-node=linode";
tshome = "sudo tailscale up --exit-node=2maccabees";
tsclear = "sudo tailscale up --exit-node=''";
# Vagrant related
vdown = "vagrant destroy";
vhalt = "vagrant halt";
vos = "vagrant up --provision --provider openstack";
vprov = "vagrant provision";
vup = "vagrant up --provision --provider libvirt";
vssh = "vagrant ssh";
};
};
2025-08-01 10:24:15 -05:00
programs = {
2025-08-13 22:32:54 -05:00
carapace = {
enable = true;
};
direnv = {
enable = true;
};
2025-08-01 10:24:15 -05:00
ghostty = {
enable = true;
package = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
settings = {
2025-08-15 22:59:11 -05:00
command = lib.getExe config.programs.nushell.package;
2025-08-01 10:24:15 -05:00
font-family = "Hacker";
theme = "Dracula";
scrollback-limit = "1000000";
window-save-state = "always";
keybind = [
#"ctrl+n=new_window"
2025-08-01 10:24:15 -05:00
2025-08-13 13:39:34 -05:00
"ctrl+shift+h=goto_split:left"
"ctrl+shift+j=goto_split:down"
"ctrl+shift+k=goto_split:up"
"ctrl+shift+l=goto_split:right"
2025-08-01 10:24:15 -05:00
"ctrl+b>h=new_split:left"
"ctrl+b>j=new_split:down"
"ctrl+b>k=new_split:up"
"ctrl+b>l=new_split:right"
"ctrl+b>t=new_tab"
"ctrl+b>n=next_tab"
"ctrl+b>p=previous_tab"
];
};
};
2025-08-13 22:32:54 -05:00
starship = {
enable = true;
};
2025-08-01 10:24:15 -05:00
};
}