bump
This commit is contained in:
parent
4d7f35085a
commit
38b03e47e3
2 changed files with 12 additions and 19 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -107,11 +107,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715262380,
|
"lastModified": 1715317466,
|
||||||
"narHash": "sha256-jz4zg7xz14PTkrTiH96tVDvCxftpDVp6vRxnO7OVReA=",
|
"narHash": "sha256-+oF2ld2XwhGQeCjtDZUaEUOeOL3/oX75xqfREz5IqJg=",
|
||||||
"owner": "lilyinstarlight",
|
"owner": "lilyinstarlight",
|
||||||
"repo": "nixos-cosmic",
|
"repo": "nixos-cosmic",
|
||||||
"rev": "1914ef3d3bbbf79892b48e9162b47f64ff99bcd5",
|
"rev": "9b23ec802bfcf70ff2819c28587599a614d40ad3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -19,35 +19,28 @@ def tse [exit_node?] {
|
||||||
tailscale set --exit-node=""
|
tailscale set --exit-node=""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def tsr [] {
|
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 --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
|
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 [] {
|
def bump [] {
|
||||||
cd /home/tao/projects/NOflake/
|
cd /home/tao/projects/NOflake/
|
||||||
jj new -m "bump"
|
jj new -m "bump"
|
||||||
nix flake update
|
nix flake update
|
||||||
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
|
# rc2nix | save -f /home/tao/projects/NOflake/users/tao/plasma.nix;
|
||||||
# sudo nix store ping --store ssh://nocomputer
|
# sudo nix store ping --store ssh://nocomputer
|
||||||
sudo nice -n19 nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose
|
rebuild boot
|
||||||
jj new
|
jj new
|
||||||
}
|
}
|
||||||
|
alias rb = rebuild boot
|
||||||
def rb [] {
|
alias rs = rebuild switch
|
||||||
# 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/
|
|
||||||
}
|
|
||||||
|
|
||||||
def ns [package] {
|
def ns [package] {
|
||||||
nix shell $"nixpkgs#($package)"
|
nix shell $"nixpkgs#($package)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue