taskwarrior3 migration, various stuff used for class

This commit is contained in:
Tao Tien 2024-08-21 18:31:46 -07:00
parent 2735980efe
commit 3ebbaf2800
5 changed files with 38 additions and 5 deletions

View file

@ -1,5 +1,7 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
qemu
# quickemu
# lychee # link checker
# etcher
# freecad

View file

@ -49,7 +49,7 @@
snapper
starship
syncthingtray
taskwarrior
taskwarrior3
thunderbird
typst
typst-fmt

View file

@ -81,6 +81,32 @@ in {
extraConfig = builtins.readFile ./nushell/stuff.nu;
};
ssh = {
enable = true;
addKeysToAgent = "yes";
compression = true;
matchBlocks = {
"stargate" = {
hostname = "stargate.cs.usfca.edu";
user = "tltien";
forwardAgent = true;
identityFile = "/home/tao/.ssh/id_ed25519";
};
"beagle" = {
hostname = "beagle";
user = "tltien";
forwardAgent = true;
identityFile = "/home/tao/.ssh/id_ed25519";
proxyCommand = "ssh stargate -W %h:%p";
};
"github" = {
hostname = "github.com";
forwardAgent = true;
identityFile = "/home/tao/.ssh/id_ed25519";
};
};
};
starship = {
enable = true;
enableNushellIntegration = true;

View file

@ -52,7 +52,7 @@
};
};
languages = {
use-grammars.only = ["rust" "c" "cpp" "typst" "nix" "html" "toml" "markdown"];
use-grammars.only = ["rust" "c" "cpp" "typst" "nix" "html" "toml" "markdown" "just"];
language = [
{
name = "arduino";

View file

@ -69,6 +69,12 @@ alias rb = rebuild boot
alias rs = rebuild switch
alias gc = nh clean all
def check-mullvad [] {
$env.LAST_EXIT_CODE = 69
if $env.LAST_EXIT_CODE != 0 {
http get https://am.i.mullvad.net/json
}
}
def tse [exit_node: string = ""] {
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
@ -77,7 +83,7 @@ def tse [exit_node: string = ""] {
} else {
tailscale set --exit-node $exit_node
}
http get https://am.i.mullvad.net/json
check-mullvad
}
def tsp [] {
tailscale exit-node list
@ -116,8 +122,7 @@ def tsr [] {
| select (random int 0..($in | length))
| tse $in.0
# tailscale status
sleep 5sec
http get https://am.i.mullvad.net/json
check-mullvad
}
alias ts = tailscale
alias tss = tailscale status