diff --git a/home/alisceon/base.nix b/home/alisceon/base.nix index 21dbd9e..7250f7c 100644 --- a/home/alisceon/base.nix +++ b/home/alisceon/base.nix @@ -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 = { diff --git a/hosts/common/base.nix b/hosts/common/base.nix index c11074a..251197b 100644 --- a/hosts/common/base.nix +++ b/hosts/common/base.nix @@ -90,6 +90,10 @@ fish powershell + # Languages + python3 + + # Virtualization podman ]; # end systemPackages