bump
This commit is contained in:
parent
4d7f35085a
commit
38b03e47e3
2 changed files with 12 additions and 19 deletions
|
|
@ -19,35 +19,28 @@ def tse [exit_node?] {
|
|||
tailscale set --exit-node=""
|
||||
}
|
||||
}
|
||||
|
||||
def tsr [] {
|
||||
tailscale status --json | from json | get Peer | transpose nodekey node | get node | filter {$in.Location?.Country == USA} | get TailscaleIPs | each {get 0} | select (random int 0..($in | length)) | tse $in.0
|
||||
tailscale status
|
||||
ff https://mullvad.net/en/check
|
||||
}
|
||||
|
||||
def rebuild [subcommand] {
|
||||
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose
|
||||
hx --grammar fetch; hx --grammar build
|
||||
rm -rf ~/.cache/jdtls/
|
||||
}
|
||||
def bump [] {
|
||||
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
|
||||
sudo nice -n19 nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose
|
||||
rebuild boot
|
||||
jj new
|
||||
}
|
||||
|
||||
def rb [] {
|
||||
# sudo nix store ping --store ssh://nocomputer
|
||||
sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
||||
hx --grammar fetch; hx --grammar build
|
||||
rm -rf ~/.cache/jdtls/
|
||||
}
|
||||
|
||||
def rs [] {
|
||||
# sudo nix store ping --store ssh://nocomputer
|
||||
sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose
|
||||
hx --grammar fetch; hx --grammar build
|
||||
rm -rf ~/.cache/jdtls/
|
||||
}
|
||||
alias rb = rebuild boot
|
||||
alias rs = rebuild switch
|
||||
|
||||
def ns [package] {
|
||||
nix shell $"nixpkgs#($package)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue