diff --git a/flake.lock b/flake.lock index 286a9b6..2f125aa 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index 2212720..1c701d1 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -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)"