nushel
This commit is contained in:
parent
4d97617529
commit
08a9b30c10
3 changed files with 32 additions and 20 deletions
|
|
@ -13,17 +13,6 @@
|
||||||
services.scx.scheduler = "scx_lavd"; # default is "scx_rustland"
|
services.scx.scheduler = "scx_lavd"; # default is "scx_rustland"
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
basedpyright
|
|
||||||
mergiraf
|
|
||||||
lazyjj
|
|
||||||
egglog
|
|
||||||
z3
|
|
||||||
# cringelang
|
|
||||||
go
|
|
||||||
delve
|
|
||||||
gotools
|
|
||||||
gopls
|
|
||||||
|
|
||||||
# act
|
# act
|
||||||
# asm-lsp
|
# asm-lsp
|
||||||
# bash-language-server
|
# bash-language-server
|
||||||
|
|
@ -39,16 +28,21 @@
|
||||||
# radicle-node
|
# radicle-node
|
||||||
# vulkan-loader
|
# vulkan-loader
|
||||||
b3sum
|
b3sum
|
||||||
|
basedpyright
|
||||||
delta
|
delta
|
||||||
devenv
|
devenv
|
||||||
direnv
|
direnv
|
||||||
|
egglog
|
||||||
gh
|
gh
|
||||||
|
gpclient
|
||||||
hyperfine
|
hyperfine
|
||||||
jujutsu
|
jujutsu
|
||||||
just
|
just
|
||||||
just-lsp
|
just-lsp
|
||||||
|
lazyjj
|
||||||
lldb
|
lldb
|
||||||
mask
|
mask
|
||||||
|
mergiraf
|
||||||
mprocs
|
mprocs
|
||||||
nomachine-client
|
nomachine-client
|
||||||
presenterm
|
presenterm
|
||||||
|
|
@ -60,6 +54,7 @@
|
||||||
tio
|
tio
|
||||||
tokei # repo code stats
|
tokei # repo code stats
|
||||||
typos
|
typos
|
||||||
|
z3
|
||||||
|
|
||||||
# # databases
|
# # databases
|
||||||
# sqlite
|
# sqlite
|
||||||
|
|
@ -82,6 +77,12 @@
|
||||||
gdb
|
gdb
|
||||||
gnumake
|
gnumake
|
||||||
|
|
||||||
|
# cringelang
|
||||||
|
go
|
||||||
|
delve
|
||||||
|
gotools
|
||||||
|
gopls
|
||||||
|
|
||||||
# nix
|
# nix
|
||||||
nil
|
nil
|
||||||
alejandra
|
alejandra
|
||||||
|
|
@ -95,8 +96,9 @@
|
||||||
pyright
|
pyright
|
||||||
|
|
||||||
# rust
|
# rust
|
||||||
cargo-binstall
|
|
||||||
bacon
|
bacon
|
||||||
|
cargo-binstall
|
||||||
|
cargo-edit
|
||||||
cargo-expand
|
cargo-expand
|
||||||
cargo-feature
|
cargo-feature
|
||||||
cargo-generate
|
cargo-generate
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,9 @@ in {
|
||||||
envFile.source = ./nushell/env.nu;
|
envFile.source = ./nushell/env.nu;
|
||||||
# extraConfig = builtins.readFile ./nushell/stuff.nu;
|
# extraConfig = builtins.readFile ./nushell/stuff.nu;
|
||||||
extraConfig = lib.concatStrings (map builtins.readFile (map (x: ./nushell/extras/. + x) (map (x: "/" + x) (builtins.attrNames (builtins.readDir ./nushell/extras)))));
|
extraConfig = lib.concatStrings (map builtins.readFile (map (x: ./nushell/extras/. + x) (map (x: "/" + x) (builtins.attrNames (builtins.readDir ./nushell/extras)))));
|
||||||
|
plugins = with pkgs.nushellPlugins; [
|
||||||
|
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
ssh = {
|
ssh = {
|
||||||
|
|
|
||||||
|
|
@ -40,15 +40,21 @@ def post-rebuild [] {
|
||||||
|
|
||||||
def bump [...rest] {
|
def bump [...rest] {
|
||||||
cd /home/tao/projects/NOflake/
|
cd /home/tao/projects/NOflake/
|
||||||
match (jj log -r @ --no-pager --no-graph --template 'if(empty, "empty", self.description())') {
|
mut r = "@"
|
||||||
"empty" => {
|
loop {
|
||||||
jj desc -m "bump (unbuilt)"
|
match (jj log -r $r --no-pager --no-graph --template 'if(empty, "empty", self.description())') {
|
||||||
}
|
"empty" => {
|
||||||
"bump (unbuilt)" | "bump (failed)" => {}
|
$r = $r + "-"
|
||||||
_ => {
|
continue
|
||||||
print "where to put bump?"
|
}
|
||||||
return
|
"bump (unbuilt)" | "bump (failed)" => {
|
||||||
|
jj desc -m "bump (unbuilt)"
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
jj new -m "bump (unbuilt)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
let r = jj log -r @ --no-pager --no-graph --template 'change_id'
|
let r = jj log -r @ --no-pager --no-graph --template 'change_id'
|
||||||
sudo nix flake update
|
sudo nix flake update
|
||||||
|
|
@ -58,6 +64,7 @@ def bump [...rest] {
|
||||||
} else {
|
} else {
|
||||||
jj desc -r $r -m "bump (failed)"
|
jj desc -r $r -m "bump (failed)"
|
||||||
}
|
}
|
||||||
|
jj new
|
||||||
}
|
}
|
||||||
|
|
||||||
alias rb = rebuild boot
|
alias rb = rebuild boot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue