taskwarrior3 migration, various stuff used for class
This commit is contained in:
parent
2735980efe
commit
3ebbaf2800
5 changed files with 38 additions and 5 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
qemu
|
||||||
|
# quickemu
|
||||||
# lychee # link checker
|
# lychee # link checker
|
||||||
# etcher
|
# etcher
|
||||||
# freecad
|
# freecad
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
snapper
|
snapper
|
||||||
starship
|
starship
|
||||||
syncthingtray
|
syncthingtray
|
||||||
taskwarrior
|
taskwarrior3
|
||||||
thunderbird
|
thunderbird
|
||||||
typst
|
typst
|
||||||
typst-fmt
|
typst-fmt
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,32 @@ in {
|
||||||
extraConfig = builtins.readFile ./nushell/stuff.nu;
|
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 = {
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
languages = {
|
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 = [
|
language = [
|
||||||
{
|
{
|
||||||
name = "arduino";
|
name = "arduino";
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,12 @@ alias rb = rebuild boot
|
||||||
alias rs = rebuild switch
|
alias rs = rebuild switch
|
||||||
alias gc = nh clean all
|
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 = ""] {
|
def tse [exit_node: string = ""] {
|
||||||
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
|
if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) {
|
||||||
|
|
@ -77,7 +83,7 @@ def tse [exit_node: string = ""] {
|
||||||
} else {
|
} else {
|
||||||
tailscale set --exit-node $exit_node
|
tailscale set --exit-node $exit_node
|
||||||
}
|
}
|
||||||
http get https://am.i.mullvad.net/json
|
check-mullvad
|
||||||
}
|
}
|
||||||
def tsp [] {
|
def tsp [] {
|
||||||
tailscale exit-node list
|
tailscale exit-node list
|
||||||
|
|
@ -116,8 +122,7 @@ def tsr [] {
|
||||||
| select (random int 0..($in | length))
|
| select (random int 0..($in | length))
|
||||||
| tse $in.0
|
| tse $in.0
|
||||||
# tailscale status
|
# tailscale status
|
||||||
sleep 5sec
|
check-mullvad
|
||||||
http get https://am.i.mullvad.net/json
|
|
||||||
}
|
}
|
||||||
alias ts = tailscale
|
alias ts = tailscale
|
||||||
alias tss = tailscale status
|
alias tss = tailscale status
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue