boxxy arduino
This commit is contained in:
parent
686af9ee2d
commit
5f99ae760b
6 changed files with 94 additions and 23 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
# freecad
|
# freecad
|
||||||
# gh
|
# gh
|
||||||
# vulkan-loader
|
# vulkan-loader
|
||||||
|
fontforge
|
||||||
direnv
|
direnv
|
||||||
qFlipper
|
qFlipper
|
||||||
hyperfine
|
hyperfine
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
cargoConfig = builtins.replaceStrings ["path/to/sccache"] ["${pkgs.sccache}/bin/sccache"] cargoFile;
|
cargoConfig = builtins.replaceStrings ["path/to/sccache"] ["${pkgs.sccache}/bin/sccache"] cargoFile;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
# ./boxxy.nix
|
./boxxy.nix
|
||||||
(import ./helix.nix {inherit pkgs inputs;})
|
(import ./helix.nix {inherit pkgs inputs;})
|
||||||
# ./plasma.nix
|
# ./plasma.nix
|
||||||
# ./firefox.nix
|
# ./firefox.nix
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,22 @@
|
||||||
{
|
{
|
||||||
programs.boxxy = {
|
programs.boxxy = {
|
||||||
rules = [];
|
rules = [
|
||||||
|
{
|
||||||
|
name = "arduino-cli";
|
||||||
|
target = "~/.arduino15";
|
||||||
|
rewrite = "~/.local/share/arduino/cli";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "arduino-cli";
|
||||||
|
target = "~/Arduino";
|
||||||
|
rewrite = "~/.local/share/arduino/ide";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "arduino-cli";
|
||||||
|
target = "~/.jssc";
|
||||||
|
rewrite = "~/.local/share/arduino/jssc";
|
||||||
|
}
|
||||||
|
];
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,10 @@
|
||||||
unit = "\t";
|
unit = "\t";
|
||||||
};
|
};
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter = {command = "clang-format";};
|
formatter = {
|
||||||
|
command = "clang-format";
|
||||||
|
args = ["--style=file:/home/tao/Templates/clang-format"];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "c";
|
name = "c";
|
||||||
|
|
@ -86,6 +89,10 @@
|
||||||
command = "clang-format";
|
command = "clang-format";
|
||||||
args = ["--style=file:/home/tao/Templates/clang-format"];
|
args = ["--style=file:/home/tao/Templates/clang-format"];
|
||||||
};
|
};
|
||||||
|
indent = {
|
||||||
|
tab-width = 8;
|
||||||
|
unit = "\t";
|
||||||
|
};
|
||||||
file-types = [
|
file-types = [
|
||||||
"cc"
|
"cc"
|
||||||
"hh"
|
"hh"
|
||||||
|
|
@ -110,12 +117,7 @@
|
||||||
{glob = ".hpp.in";}
|
{glob = ".hpp.in";}
|
||||||
{glob = ".h.in";}
|
{glob = ".h.in";}
|
||||||
];
|
];
|
||||||
indent = {
|
|
||||||
tab-width = 8;
|
|
||||||
unit = "\t";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
# { name = "css"; comment = "/*"; }
|
|
||||||
{
|
{
|
||||||
name = "html";
|
name = "html";
|
||||||
auto-format = false;
|
auto-format = false;
|
||||||
|
|
@ -173,15 +175,16 @@
|
||||||
args = ["-data" "/home/tao/.cache/jdtls/workspace"];
|
args = ["-data" "/home/tao/.cache/jdtls/workspace"];
|
||||||
};
|
};
|
||||||
arduino-language-server = {
|
arduino-language-server = {
|
||||||
command = "arduino-language-server";
|
command = "boxxy";
|
||||||
|
args = ["arduino-language-server" "-cli" "arduino-cli" "-cli-config" "~/.local/share/arduino/cli/arduino-cli.yaml" "-jobs" "0"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
grammar = [
|
grammar = [
|
||||||
{
|
{
|
||||||
name = "arduino";
|
name = "arduino";
|
||||||
source = {
|
source = {
|
||||||
git = "https://github.com/ObserverOfTime/tree-sitter-arduino";
|
git = "https://github.com/tree-sitter-grammars/tree-sitter-arduino";
|
||||||
rev = "db929fc6822b9b9e1211678d508f187894ce0345";
|
rev = "8518c3fa6b8562af545a496d55c9abd78f53e732";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -9,33 +9,48 @@ def bump [] {
|
||||||
sudo nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose
|
sudo nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def l [
|
||||||
|
path?
|
||||||
|
flags?
|
||||||
|
] {
|
||||||
|
if $path == null {
|
||||||
|
# ls $flags
|
||||||
|
ls
|
||||||
|
} else {
|
||||||
|
# ls $flags $path
|
||||||
|
ls $path
|
||||||
|
} | sort-by type name -i
|
||||||
|
}
|
||||||
|
|
||||||
def tse [exit_node] {
|
def tse [exit_node] {
|
||||||
tailscale set --exit-node=$exit_node
|
tailscale set --exit-node=$exit_node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def rb [] {
|
||||||
|
sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
||||||
|
hx --grammar fetch; hx --grammar build
|
||||||
|
}
|
||||||
|
|
||||||
|
def rs [] {
|
||||||
|
sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
||||||
|
hx --grammar fetch; hx --grammar build
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
alias ard = arduino-cli
|
||||||
|
alias arduino-cli = boxxy arduino-cli
|
||||||
alias b = btm;
|
alias b = btm;
|
||||||
alias cringe = sudo bootctl set-oneshot auto-windows
|
alias cringe = sudo bootctl set-oneshot auto-windows
|
||||||
alias fetch = neofetch
|
alias fetch = neofetch
|
||||||
alias ff = firefox
|
alias ff = firefox
|
||||||
alias gc = sudo nix-collect-garbage -d --verbose
|
alias gc = sudo nix-collect-garbage -d --verbose
|
||||||
alias js = jj status
|
|
||||||
alias jd = jj diff
|
alias jd = jj diff
|
||||||
|
alias js = jj status
|
||||||
alias pu = pueue
|
alias pu = pueue
|
||||||
alias rb = sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
|
||||||
alias rs = sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose
|
|
||||||
alias t = task
|
alias t = task
|
||||||
alias ts = tailscale
|
alias ts = tailscale
|
||||||
alias tss = tailscale status
|
alias tss = tailscale status
|
||||||
alias tsx = tailscale exit-node list
|
alias tsx = tailscale exit-node list
|
||||||
alias zl = zellij
|
alias zl = zellij
|
||||||
|
|
||||||
def l [] {
|
|
||||||
ls | sort-by type
|
|
||||||
}
|
|
||||||
|
|
||||||
def c [$path] {
|
|
||||||
cd $path;
|
|
||||||
l;
|
|
||||||
}
|
|
||||||
|
|
||||||
task
|
task
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
source ~/.cache/starship/init.nu
|
||||||
|
source ~/.zoxide.nu
|
||||||
|
|
||||||
|
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 nixos-rebuild boot --flake /home/tao/projects/NOflake/ --impure --verbose;
|
||||||
|
};
|
||||||
|
|
||||||
|
def tse [exit_node] {
|
||||||
|
tailscale set --exit-node=$exit_node
|
||||||
|
}
|
||||||
|
|
||||||
|
alias b = btm;
|
||||||
|
alias cringe = sudo bootctl set-oneshot auto-windows
|
||||||
|
alias fetch = neofetch
|
||||||
|
alias ff = firefox
|
||||||
|
alias gc = sudo nix-collect-garbage -d --verbose
|
||||||
|
alias js = jj status
|
||||||
|
alias jd = jj diff
|
||||||
|
alias pu = pueue
|
||||||
|
alias rb = sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
|
||||||
|
alias rs = sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose
|
||||||
|
alias t = task
|
||||||
|
alias ts = tailscale
|
||||||
|
alias tss = tailscale status
|
||||||
|
alias tsx = tailscale exit-node list
|
||||||
|
alias zl = zellij
|
||||||
|
|
||||||
|
def l [] {
|
||||||
|
ls | sort-by type
|
||||||
|
}
|
||||||
|
|
||||||
|
task
|
||||||
Loading…
Add table
Add a link
Reference in a new issue