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": {
|
||||
"lastModified": 1715262380,
|
||||
"narHash": "sha256-jz4zg7xz14PTkrTiH96tVDvCxftpDVp6vRxnO7OVReA=",
|
||||
"lastModified": 1715317466,
|
||||
"narHash": "sha256-+oF2ld2XwhGQeCjtDZUaEUOeOL3/oX75xqfREz5IqJg=",
|
||||
"owner": "lilyinstarlight",
|
||||
"repo": "nixos-cosmic",
|
||||
"rev": "1914ef3d3bbbf79892b48e9162b47f64ff99bcd5",
|
||||
"rev": "9b23ec802bfcf70ff2819c28587599a614d40ad3",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -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