cleaunup alsna

This commit is contained in:
Tao Tien 2025-03-14 18:07:44 -07:00
parent 4e8b13ed79
commit 1e50e835f7
4 changed files with 14 additions and 20 deletions

View file

@ -13,6 +13,7 @@ alias la = ls -a
alias quiet = sudo ectool fanduty 42
alias loud = sudo ectool autofanctrl
alias louder = sude ectool fanduty 100
alias cp-full = cp
alias cp = cp -prv

View file

@ -4,11 +4,11 @@ def ns [package] {
nix shell $"nixpkgs#($package)"
}
def nr [package] {
nix search nixpkgs $package
}
# def nr [package] {
# nix search nixpkgs $package
# }
def rebuild --wrapped [subcommand, --builders: string, ...rest] {
def rebuild [subcommand, --builders: string] {
mut builders = $builders;
if (open /etc/hostname --raw) == "NOlaptop\n" and ($builders != "") {
if (ping -c1 -W1 nocomputer | complete | $in.exit_code == 0) {
@ -18,9 +18,9 @@ def rebuild --wrapped [subcommand, --builders: string, ...rest] {
}
}
if ($builders == "") {
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --builders ""
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --builders "" --log-format internal-json o+e>| nom --json
} else {
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose ...$rest
sudo systemd-inhibit nice -n19 nixos-rebuild $subcommand --flake . --impure --verbose --log-format internal-json o+e>| nom --json
}
toastify send rebuild done!
}
@ -31,13 +31,13 @@ def post-rebuild [] {
rustup update
}
def bump --wrapped [...rest] {
def bump [...rest] {
cd /home/tao/projects/NOflake/
jj new -m "bump"
nix flake update
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
# sudo nix store ping --store ssh://nocomputer
rebuild boot ...$rest
rebuild boot
jj new
}