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, ... }: { pkgs, config, hostName, lib, ... }:
let let
globalShellAbbrs = { # Universal shell abbreviations
baseAbbrs = {
tsla-fan = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0"; tsla-fan = "ipmitool -H 10.30.0.3 -U ADMIN -P ADMIN raw 0x30 0x70 0x66 0x01 0x0";
# NixOS commands # NixOS commands
@ -16,12 +17,15 @@
devs = "devenv shell"; devs = "devenv shell";
devu = "devenv up -d"; devu = "devenv up -d";
devi-python = "nix flake init -t templates#python"; 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 }; # 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 in
{ {
home.username = "alisceon"; home.username = "alisceon";
@ -41,6 +45,9 @@
ll = "exa -lah"; ll = "exa -lah";
grep = "rg"; grep = "rg";
cat = "bat -p"; cat = "bat -p";
pypod = "podman run --rm -it --network host -v '.:/run' -w '/run' python /run/";
devi = "nix flake init -t templates#";
}; };
}; # end fish }; # end fish
nushell = { nushell = {

View file

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