towermods

This commit is contained in:
alisceon 2025-08-25 10:39:22 +02:00
parent f41073d530
commit c376b4db13
2 changed files with 17 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{ pkgs, config, hostName, lib, ... }:
let
globalShellAbbrs = {
# Universal shell abbreviations
baseAbbrs = {
tsla-fan = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0";
# NixOS commands
@ -16,12 +17,15 @@
devs = "devenv shell";
devu = "devenv up -d";
devi-python = "nix flake init -t templates#python";
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
# Tower commands
weboot = "nix shell nixpkgs#efibootmgr -c sudo efibootmgr -n 0000";
}; # end globalShellAbbrs
# Tower specific abbreviations
towerAbbrs =
if hostName == "tower" then {
weboot = "bash -c 'nix shell nixpkgs#efibootmgr -c sudo efibootmgr -n 0000 && reboot'";
}
else
{};
globalShellAbbrs = baseAbbrs // towerAbbrs;
in
{
home.username = "alisceon";
@ -41,6 +45,9 @@
ll = "exa -lah";
grep = "rg";
cat = "bat -p";
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
devi = "nix flake init -t templates#";
};
}; # end fish
nushell = {

View file

@ -90,6 +90,10 @@
fish
powershell
# Languages
python3
# Virtualization
podman
]; # end systemPackages